Results 1 to 3 of 3

Thread: [2005] FileSystemWhatcher exception.

  1. #1

    Thread Starter
    PowerPoster VBDT's Avatar
    Join Date
    Sep 2005
    Location
    CA - USA
    Posts
    2,922

    Question [2005] FileSystemWhatcher exception.

    Hi everyone! This error is really killing me help please!!! 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!
    Attached Images Attached Images  

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    PowerPoster VBDT's Avatar
    Join Date
    Sep 2005
    Location
    CA - USA
    Posts
    2,922

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width