Re: [DOTNET] Problem with Service and File System Watcher

2002-06-12 Thread Justin Harrell
, 2002 4:44 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Problem with Service and File System Watcher Unfortunately it doesn't guarantee no overflows completely, although passing the processing off to a queue certainly helps. In my application I still have to have watch for overflows even thoug

Re: [DOTNET] Problem with Service and File System Watcher

2002-06-12 Thread Scott Boston
3 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Problem with Service and File System Watcher Scott, Thanks!! that was it. Now getting buffer errors. Justin, sounds like your on to something with this thought about threading. (somthing i'm not up to speed on yet). Digging through my code

Re: [DOTNET] Problem with Service and File System Watcher

2002-06-12 Thread Justin Harrell
e: [DOTNET] Problem with Service and File System Watcher Scott, Thanks!! that was it. Now getting buffer errors. Justin, sounds like your on to something with this thought about threading. (somthing i'm not up to speed on yet). Digging through my code, I found some areas where it can

Re: [DOTNET] Problem with Service and File System Watcher

2002-06-12 Thread Don Davis
Scott, Thanks!! that was it. Now getting buffer errors. Justin, sounds like your on to something with this thought about threading. (somthing i'm not up to speed on yet). Digging through my code, I found some areas where it can be tweaked for better performance. I was able to make room in the

Re: [DOTNET] Problem with Service and File System Watcher

2002-06-12 Thread Justin Harrell
Besides checking out the internalbuffersize stuff, you may want to think about how you are processing the files. Since you said that by commenting out process procedure it sees all the files, it sounds like the buffer is overflowing because the events are not finishing up fast enough to keep that

Re: [DOTNET] Problem with Service and File System Watcher

2002-06-12 Thread Steve Holak
One caveat with an automated dumping of files to a directory as part of an app (which is probably not related to your problem, but I'm FYIing you), is that there is a limitation to the number of files that can be in a windows folder--this was discussed on this list last year, I believe; search the

Re: [DOTNET] Problem with Service and File System Watcher

2002-06-12 Thread Scott Boston
The FileSystemWatcher buffer is overflowing. You can handle this event by adding something like this to your code that sets of the FileSystemWatcher: // ProcessOverflow is a method setup to handle FSW buffer overflows. fsw.Error += new ErrorEventHandler(ProcessOverflow); See MSDN for FileSystem