Hi,
I want to use the FileSystemWatch er in a Windows Service. I read an article,
where the author created the FileSystemWatch er object in a seperate thread
and when the event is fired, he started a working thread for processing the
file, created a new FileSystemWatch er (as he said for real time processing),
and then called the join method for the first thread.
I can't really see the sence in this. Aren't the events of the
FileSystemWatch er created in seperate threads? (As it works with asynchronus
Sockets, I think)
Because if so, then the seperate thread for the FileSystemWatch er and the
creation of a new one for the new files would be complete nonsense.
I hope someone can clear this. I need to know how FileSystemWatch er works
and if it uses threads or not.
greetings
Florian
I want to use the FileSystemWatch er in a Windows Service. I read an article,
where the author created the FileSystemWatch er object in a seperate thread
and when the event is fired, he started a working thread for processing the
file, created a new FileSystemWatch er (as he said for real time processing),
and then called the join method for the first thread.
I can't really see the sence in this. Aren't the events of the
FileSystemWatch er created in seperate threads? (As it works with asynchronus
Sockets, I think)
Because if so, then the seperate thread for the FileSystemWatch er and the
creation of a new one for the new files would be complete nonsense.
I hope someone can clear this. I need to know how FileSystemWatch er works
and if it uses threads or not.
greetings
Florian
Comment