VB.NET 2003 FileSystemWatcher Problem - Too many changes?

  • Thread starter Thread starter Joshua Mann
  • Start date Start date
J

Joshua Mann

I have created a windows service which runs the FileSystemWatcher
component. If the service is running and monitoring a directory (ex.
"c:\temp") during heavy folder access the service generates the
following error: "Too many changes at once in directory:".

Is there ANY way around this?

Is this an error or a warning?
Meaning, can I just ignore it? Or is it actually skipping and not
processing those events when thrown? Because so many things are
happening in the folder I cant tell which files were processed and if
any were skipped.

Thanks for any help,
Josh
 
You might want to use the FileSystemWatcher.NotifyFilter and
FileSystemWatcher.IncludeSubDirectories properties to filter out unwanted
results. The exception being thrown is the
System.IO.InternalBufferOverflowException. You can try to increase the
buffer size using FileSystemWatcher.InternalBufferSize property. Here's a
link to documentation on this issue:
http://msdn.microsoft.com/library/d...internalbufferoverflowexceptionclasstopic.asp


hope that helps..
Imran.
 
Back
Top