VB.NET 2003 FileSystemWatcher Problem - Too many changes?

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
 
I

Imran Koradia

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top