[Mono-dev] Re: [Mono-list] FileSystemWatcher status

Stefano Incontri sincontr at yahoo.it
Thu Dec 22 05:39:51 EST 2005


>From the first tests, I can see that FileSystemWatcher perfectly works
with files or folders, but not with subdirectories.
I mean, if I set FileSystemWatcher.IncludeSubdirectories = true it hangs
up while receiving events from inside the first folder, with the
following exception :

Unhandled Exception: System.ArgumentOutOfRangeException: Index is less
than 0 or more than or equal to the list count.
Parameter name: index
4
in <0x00071> System.Collections.ArrayList:get_Item (Int32 index)
in <0x004c0> System.IO.FAMWatcher:ProcessEvents ()
in <0x00061> System.IO.FAMWatcher:Monitor ()
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()

Instead, if I disable subdirectories or copy only files, it works.
Could be helpful for you to understand the problem?

Thanks
Stefano


Il giorno mer, 21/12/2005 alle 06.56 -0500, Miguel de Icaza ha scritto:
> Hello,
> 
> > Hi All, I'm testing a little application which keep aligned some files
> > using the FileSystemWatcher facility, but I see that sometimes it looses
> > some event (file modification or new file creation).
> > The same application, built under Windows, works fine instead.
> > 
> > Is mono's FileSystemWatcher reliable?
> 
> Please file a bug report with a test case so we can look into the
> problem


		
___________________________________ 
Yahoo! Messenger: chiamate gratuite in tutto il mondo 
http://it.messenger.yahoo.com



More information about the Mono-devel-list mailing list