[Mono-devel-list] File watcher warnings patch

Nick Drochak ndrochak at gol.com
Mon Jan 26 09:36:00 EST 2004


| -----Original Message-----
| From: mono-devel-list-admin at lists.ximian.com
| [mailto:mono-devel-list-admin at lists.ximian.com] On Behalf Of Nick Drochak
| Sent: Monday, January 26, 2004 11:28 PM
| To: mono-devel-list at lists.ximian.com
| Subject: [Mono-devel-list] File watcher warnings patch
| 
| Hi.
| 
| Here's a simple patch[1] to eliminate a couple of warnings during the
build
| of System.dll.
| 

Sorry, here is the real patch.  Not sure if "disposed" is used by the
runtime or something.  Is it?

cvs server: Diffing .
Index: FAMWatcher.cs
===================================================================
RCS file: /cvs/public/mcs/class/System/System.IO/FAMWatcher.cs,v
retrieving revision 1.2
diff -u -r1.2 FAMWatcher.cs
--- FAMWatcher.cs       21 Jan 2004 21:54:45 -0000      1.2
+++ FAMWatcher.cs       26 Jan 2004 14:16:33 -0000
@@ -143,7 +143,6 @@

                static void StopMonitoringDirectory (FAMData data)
                {
-                       FAMRequest fr;
                        if (FAMCancelMonitor (ref conn, ref data.Request) ==
-1)
                                throw new Win32Exception ();
                }
Index: FileSystemWatcher.cs
===================================================================
RCS file: /cvs/public/mcs/class/System/System.IO/FileSystemWatcher.cs,v
retrieving revision 1.10
diff -u -r1.10 FileSystemWatcher.cs
--- FileSystemWatcher.cs        22 Jan 2004 01:38:13 -0000      1.10
+++ FileSystemWatcher.cs        26 Jan 2004 14:16:33 -0000
@@ -30,7 +30,6 @@
                string path;
                string fullpath;
                ISynchronizeInvoke synchronizingObject;
-               bool disposed;
                WaitForChangedResult lastData;
                bool waiting;
                SearchPattern2 pattern;
@@ -287,7 +286,6 @@
                        if (disposing) {
                                Stop ();
                        }
-                       disposed = true;
                        base.Dispose (disposing);
                }




More information about the Mono-devel-list mailing list