Author: toshok
Date: 2006-08-28 12:29:33 -0400 (Mon, 28 Aug 2006)
New Revision: 64479

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
Log:
2006-08-28  Chris Toshok  <[EMAIL PROTECTED]>

        * Control.cs: make the static "controls" field synchronized, as it
        gets updated from multiple threads.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-08-28 15:55:54 UTC (rev 64478)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-08-28 16:29:33 UTC (rev 64479)
@@ -1,3 +1,8 @@
+2006-08-28  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * Control.cs: make the static "controls" field synchronized, as it
+       gets updated from multiple threads.
+
 2006-08-27  Peter Dennis Bartok  <[EMAIL PROTECTED]>
 
        * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2006-08-28 15:55:54 UTC (rev 64478)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2006-08-28 16:29:33 UTC (rev 64479)
@@ -105,7 +105,7 @@
                internal int                    dist_bottom;            // 
distance to the bottom border of the parent
 
                // to be categorized...
-               static internal ArrayList       controls = new ArrayList();     
        // All of the application's controls, in a flat list
+               static internal ArrayList       controls = 
ArrayList.Synchronized (new ArrayList());  // All of the application's 
controls, in a flat list
                internal ControlCollection      child_controls;         // our 
children
                internal Control                parent;                 // our 
parent control
                internal AccessibleObject       accessibility_object;   // 
object that contains accessibility information about our control

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

Reply via email to