I wrote a C# window service to minotor a particular folder, once there're subfolder, something will be dome to the subfolder. codes like,
FileSystemWatcher watcher = new FileSystemWatcher();
watcher.Path = MonitoringFolderPath;
watcher.NotifyFilter = NotifyFilters.DirectoryName;
watcher.IncludeSubdirectories = true;
watcher.Created += new FileSystemEventHandler(OnCreated);
watcher.EnableRaisingEvents = true;
the problems is that when there're several/many folders arriving, the service program itself sometime would be gone in runtime. I guess it may due to AntiVirus or SMP(multi-processor)/hyperthreading.
Does anyone meet such problem?
Any comment is welcomed.
Thanks.