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 93e7b896c2
commit a251617e9b

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();