Author: pbartok
Date: 2005-03-17 06:44:28 -0500 (Thu, 17 Mar 2005)
New Revision: 41938

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
Log:
2005-03-17  Jonathan Gilbert  <[EMAIL PROTECTED]>

        * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
          X access (avoids X-Async errors)



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-03-17 11:41:11 UTC (rev 41937)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-03-17 11:44:28 UTC (rev 41938)
@@ -1,3 +1,8 @@
+2005-03-17  Jonathan Gilbert  <[EMAIL PROTECTED]>
+
+       * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
+         X access (avoids X-Async errors)
+
 2005-03-16  Jackson Harper  <[EMAIL PROTECTED]>
 
        * TabControl.cs: Raise the SelectedIndexChanged event.

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs    
2005-03-17 11:41:11 UTC (rev 41937)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs    
2005-03-17 11:44:28 UTC (rev 41938)
@@ -158,6 +158,7 @@
                        XlibLock = new object ();
                        MessageQueue = new XEventQueue ();
                        TimerList = new ArrayList ();
+                       XInitThreads();
 
                        ErrorExceptions = false;
 
@@ -3366,6 +3367,9 @@
 
                [DllImport ("libX11", EntryPoint="XGetErrorText")]
                internal extern static IntPtr XGetErrorText(IntPtr display, 
byte code, StringBuilder buffer, int length);
+
+               [DllImport ("libX11", EntryPoint="XInitThreads")]
+               internal extern static int XInitThreads();
                #endregion
        }
 }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to