I've attempted to write a windows service that creates one FileSystemWatch er
for each entry in a XML config file. Everything start perfrectly and runs
as I expect for about 5 minutes and then after that the FileSystemWatch ers
seem to stop monitoring... My theory is that for some reason the Garbage
Collector is trashing my FileSystemWatch ers.
Another clue to my situation is that I just took my service and made it into
a windows form application and it's been running overnight without any
problems. What am I overlooking? Can anyone point me in the right
direction?
Thanks,
Craig
for each entry in a XML config file. Everything start perfrectly and runs
as I expect for about 5 minutes and then after that the FileSystemWatch ers
seem to stop monitoring... My theory is that for some reason the Garbage
Collector is trashing my FileSystemWatch ers.
Another clue to my situation is that I just took my service and made it into
a windows form application and it's been running overnight without any
problems. What am I overlooking? Can anyone point me in the right
direction?
Thanks,
Craig
Comment