Threads with message pump require STA comparment
authorStefanos A <stapostol@gmail.com>
Thu, 19 Dec 2013 09:39:36 +0000 (10:39 +0100)
committerStefanos A <stapostol@gmail.com>
Sun, 22 Dec 2013 13:15:47 +0000 (14:15 +0100)
May affect issue #19

Source/OpenTK/Platform/Windows/WinInputBase.cs

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