[Mono-bugs] [Bug 82837][Maj] Changed - Memory leak with FileSystemWatcher with MONO_MANAGED_WATCHER
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Sep 13 12:12:17 EDT 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by informatique.internet at fiducial.fr.
http://bugzilla.ximian.com/show_bug.cgi?id=82837
--- shadow/82837 2007-09-13 11:55:14.000000000 -0400
+++ shadow/82837.tmp.17108 2007-09-13 12:12:17.000000000 -0400
@@ -55,6 +55,37 @@
http://dl.free.fr/aNKiwbO30/test-0000.mpeg
------- Additional Comments From informatique.internet at fiducial.fr 2007-09-13 11:55 -------
http://dl.free.fr/bBeOwJc2n/outfiles.tar.bz2
omap files for heap-shot taken at about 1 min interval
+
+------- Additional Comments From informatique.internet at fiducial.fr 2007-09-13 12:12 -------
+Here's a test case for FileSystemWatcher
+// project created on 13/09/2007 at 17:25
+using System;
+using System.IO;
+
+namespace FsWatcherTest
+{
+ class MainClass
+ {
+ public static void Main(string[] args)
+ {
+ Console.WriteLine("Hello World!");
+ FileSystemWatcher watcher=new FileSystemWatcher();
+ watcher.Path="/tmp";
+ watcher.EnableRaisingEvents = true;
+ watcher.Changed += new
+System.IO.FileSystemEventHandler(fileSystemWatcher1_Changed);
+ Console.ReadLine();
+ }
+
+ private static void fileSystemWatcher1_Changed(Object
+sender,EventArgs args)
+ {
+ Console.WriteLine("changed");
+ }
+ }
+}
+
+If you run it with MONO_MANAGED_WATCHER="1" it leaks...
More information about the mono-bugs
mailing list