Hi,
I have a FileSystemWatcher object to monitor one certain folder on
server.
FileSystemWatcher watcher = new FileSystemWatcher();
watcher.Path = @"C:\MyFolder";
watcher.NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.FileName |
NotifyFilters.Size;
watcher.Filter = "*.txt";
watcher.Created += new FileSystemEventHandler(watcher_Created);
// Begin watching.
watcher.EnableRaisingEvents = true;
The event is like
private void watcher_Created(object sender, FileSystemEventArgs e) {
// do something lengthy
}
My question is, under heavy situation, if the second file is thrown to this
folder before event handler finishes processing for the first file, will
event handler wait until first one finishes or it will kick out anyway?
Thanks for any suggestion!
--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy