https://bugzilla.novell.com/show_bug.cgi?id=342972
Summary: After calling watcher.EnableRaisingEvents = false I
still get events
Product: Mono: Class Libraries
Version: 1.2.4
Platform: Other
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
Found By: ---
Running with MONO_MANAGED_WATCHER=0 (meaning it should use the inotify
watcher).
I have the following code:
System.Console.WriteLine("HELLO STOP");
watcher.EnableRaisingEvents = false;
System.Console.WriteLine("HELLO STOP 1");
and setup code:
watcher = new FileSystemWatcher(watch_path);
watcher.IncludeSubdirectories = true;
watcher.NotifyFilter = //NotifyFilters.CreationTime |
NotifyFilters.FileName | NotifyFilters.LastAccess |
NotifyFilters.LastWrite | NotifyFilters.Size;
watcher.Error += on_watch_error;
watcher.Changed += on_file_changed;
watcher.Created += on_file_created;
watcher.Deleted += on_file_deleted;
watcher.Renamed += on_file_renamed;
watcher.EnableRaisingEvents = true;
And inside one of the callback I have:
private void on_file_changed(object sender, FileSystemEventArgs e)
{
System.Console.WriteLine("GOT CHANGE");
add_low_priority_db_work(delegate () {
db_handle_change(e.FullPath); });
}
I get the following traceback in console:
HELLO STOP
GOT CHANGE
GOT CHANGE
GOT CHANGE
HELLO STOP 1
That seems very much like a bug.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs