Threads with message pump require STA comparment

May affect issue #19
This commit is contained in:
Stefanos A 2013-12-19 10:39:36 +01:00
parent ecd7db99c1
commit 6493ab0188

View file

@ -58,6 +58,7 @@ namespace OpenTK.Platform.Windows
WndProc = WindowProcedure;
InputThread = new Thread(ProcessEvents);
InputThread.SetApartmentState(ApartmentState.STA);
InputThread.IsBackground = true;
InputThread.Start();