Have you read an article in made in April 2005 in the UTMag about the FileSystemWatcher? You can read it from
http://www.utmag.com/wconnect/wc.dll?LevelExtreme~9,7,10,,792>I have been playing around with FileSystemWatcher, and had a question...
>
>I set my event for Created, and I created a file... worked as expected with no problems. However, what it performs the event handler method, does it do it in a new thread? I put a thread.sleep in my event handler to test, and I dropped a few text files into the watched directory, and the thread.sleep didn't seem to affect things, so it leads me to believe that it is starting a new thread for every event.
>
>If this is the case, is there a limit to how many threads can start? Let's say in my event handler I am performing an action that takes 30 seconds, and for some reason 100 files got created in those 30 seconds... will 30 threads get created?
>
>This may be a generic EventHandler question rather than a FileSystemWatcher question...
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com