[Mono-dev] bug in System.IO.FileSystemWatcher

brendan powers brendan0powers at gmail.com
Thu Aug 10 15:36:11 EDT 2006


Attached is a diff of mcs/class/System/System.IO/FAMWatcher.cs to fix
a bug in FileSystemWatcher where it would lock up when monitoring
large directories. This Happened wheen
FileSystemWatcher.IncludeSubDirectories was set to true and then
EnableRaisingEvents was set to true. The cause of the bug seems to be
a problem with the kernel(dnotify?). The fix is to add a Thread.Sleep
for 1ms in StartMonitoringDirectory.

Hope this helps.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: FAMWatcher.cs.diff
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060810/c6d4a423/attachment.pl 


More information about the Mono-devel-list mailing list