Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2005

Tip: Looking for answers? Try searching our database.

FileSystemWatcher fails

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rob Oldfield - 20 Jan 2005 23:25 GMT
I have an app (that should really be a service, but I haven't got round to
it yet) that just monitors a network folder via a filesystemwatcher for new
files and then does its thing.  Generally, it works fine, but it fails about
once a month - which is about one every 2-3 hundred files.  No error message
or exceptions... it just fails to notice that the file has appeared.  After
that, any other new files are also ignored.

I'm thinking of switching to a dir function running every ten seconds or
so....but was wondering if anyone had any ideas about the situation.
Nathan - 21 Jan 2005 03:13 GMT
Hi Rob,
Are you subscribing to the Error Event?  Per the docs it sounds like an
internal buffer overflow which won't raise an excpetion but will raise the
FileSystemWatcher.Error Event.  If the Error event is never being raised I'd
still play with the InternalBufferSize property to see if it has any affect.

You may also be able to get a dump when notifications stop and hunt down the
internal buffer to see if it's full or not just to verify whether or not this
is the case.

HTH,
Nathan

> I have an app (that should really be a service, but I haven't got round to
> it yet) that just monitors a network folder via a filesystemwatcher for new
[quoted text clipped - 5 lines]
> I'm thinking of switching to a dir function running every ten seconds or
> so....but was wondering if anyone had any ideas about the situation.
Rob Oldfield - 21 Jan 2005 09:14 GMT
Thanks for that.  I haven't touched the error event so I'll give it a go.

> Hi Rob,
> Are you subscribing to the Error Event?  Per the docs it sounds like an
[quoted text clipped - 18 lines]
> > I'm thinking of switching to a dir function running every ten seconds or
> > so....but was wondering if anyone had any ideas about the situation.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.