PC Review


Reply
Thread Tools Rate Thread

FlieSystemWatcher stops watching after at least 40min

 
 
Hasani
Guest
Posts: n/a
 
      23rd Feb 2005
I have a window service that uses a filesystemwatcher object to monitor a
folder on the root drive. AFter about 40min of no activity, the
filesystemwatcher stops noticing changes on the folder.

I've done several things
1) have a timer output "PING!" every 60s to the trace (I use a telnet
tracer), doing that seems to prevent it from barfing.
2) Every 60s, set EnableRaiseEVents to false then true. That would generate
this error -> System.IO.InternalBufferOverflowException: Too many changes at
once in directory:C:\Epx.
3) Increase the internal buffer... it still stops noticing changes after
about 1hr.

Has anyone else had these problems. This code is running in a separate child
app domain if that means anything.


 
Reply With Quote
 
 
 
 
Hasani
Guest
Posts: n/a
 
      25th Feb 2005
Apparently, it was because I was remoting a mbr object who's lease had
expired.

"Hasani" <(E-Mail Removed)0m> wrote in message
news:d4SdnRLy0IPxOIHfRVn-(E-Mail Removed)...
> I have a window service that uses a filesystemwatcher object to monitor a
> folder on the root drive. AFter about 40min of no activity, the
> filesystemwatcher stops noticing changes on the folder.
>
> I've done several things
> 1) have a timer output "PING!" every 60s to the trace (I use a telnet
> tracer), doing that seems to prevent it from barfing.
> 2) Every 60s, set EnableRaiseEVents to false then true. That would

generate
> this error -> System.IO.InternalBufferOverflowException: Too many changes

at
> once in directory:C:\Epx.
> 3) Increase the internal buffer... it still stops noticing changes after
> about 1hr.
>
> Has anyone else had these problems. This code is running in a separate

child
> app domain if that means anything.
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Media Player 11.0.5721.5268 stops responding (video stops or all s Franklin Windows XP Video 0 27th Jan 2010 05:54 AM
IE 7.0 stops responding, stops working,or restarts unexpectedly , =?Utf-8?B?RmVybmFuZG8=?= Windows XP Internet Explorer 1 13th Nov 2007 10:32 PM
Sound cuts out and stops when watching TV with MMC 9.08 G.M. Durrence ATI Video Cards 1 25th Nov 2005 08:23 PM
FileSystemWatcher Stops Watching Martin Smith via .NET 247 Microsoft Dot NET Framework 1 14th Feb 2005 07:06 PM
XP home install won't complete - process stops, reboots, stops again =?Utf-8?B?Q2hhcmxlcyBSIEk=?= Windows XP Setup 1 19th Mar 2004 04:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:36 PM.