1 Attachment(s)
[2005] FileSystemWhatcher exception.
Hi everyone! This error is really killing me help please!!! :eek2: I have a FileSystemWhatcher in my project which its turn monitors the C:\ drive for any file or folder changes. Once a while I get this error (see the image). I don’t have a clue why it is happening. I use “Created, Deleted, Changed, and Renamed” events to be noticed of the changes. Now does anyone now how can I stop this annoying exception? Thanks in advance!
Re: [2005] FileSystemWhatcher exception.
Have you expanded the InnerException? That looks like it's likely to be informative. If you are monitoring C:\ and all subfolders then the message "Too many changes at once in directory:C:\\." is perhaps understandable.
Re: [2005] FileSystemWhatcher exception.
Hi Jmcilhinney and thanks for response. Yes I have looked in to the inner exception and some of them describe as the buffer size exceeded its limit. I made the FileSystemWatchers buffer size bigger twice to see if it will fix the problem. Since this error happens not often I need to wait and see. I will post the result later on.