Author: lluis
Date: 2005-04-05 10:12:22 -0400 (Tue, 05 Apr 2005)
New Revision: 42568

Modified:
   trunk/mcs/class/System/System.IO/ChangeLog
   trunk/mcs/class/System/System.IO/FAMWatcher.cs
Log:
2005-04-05  Lluis Sanchez Gual  <[EMAIL PROTECTED]>

        * FAMWatcher.cs: Fix cast exception when disposing watchers.



Modified: trunk/mcs/class/System/System.IO/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.IO/ChangeLog  2005-04-05 13:46:59 UTC (rev 
42567)
+++ trunk/mcs/class/System/System.IO/ChangeLog  2005-04-05 14:12:22 UTC (rev 
42568)
@@ -1,3 +1,7 @@
+2005-04-05  Lluis Sanchez Gual  <[EMAIL PROTECTED]>
+
+       * FAMWatcher.cs: Fix cast exception when disposing watchers.
+
 2005-03-30  Geoff Norton  <[EMAIL PROTECTED]>
 
        * KeventWatcher.cs: Fix a file handle leak on raised events.

Modified: trunk/mcs/class/System/System.IO/FAMWatcher.cs
===================================================================
--- trunk/mcs/class/System/System.IO/FAMWatcher.cs      2005-04-05 13:46:59 UTC 
(rev 42567)
+++ trunk/mcs/class/System/System.IO/FAMWatcher.cs      2005-04-05 14:12:22 UTC 
(rev 42568)
@@ -183,7 +183,7 @@
                                if (!data.IncludeSubdirs)
                                        return;
 
-                               foreach (FAMData fd in data.SubDirs) {
+                               foreach (FAMData fd in data.SubDirs.Values) {
                                        StopMonitoringDirectory (fd);
                                        requests.Remove (fd.Request.ReqNum);
                                }

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

Reply via email to