T
Terry Olsen
I have a console app that uses FileSystemWatcher to watch for a certain file
to be created, then it reads the data out of the file, inserts it into an
sql database, deletes the file and then resumes watching for it to be
created again.
Every now and then, the FileSystemWatcher stops working (maybe the entire
app, I can't tell). Anyway, the file gets created, the program doesn't see
it. I delete the file manually, and re-create it, nothing. The only fix is
to stop the app and restart it.
I haven't been able to figure out why this might happen. Anyone have any
ideas?
to be created, then it reads the data out of the file, inserts it into an
sql database, deletes the file and then resumes watching for it to be
created again.
Every now and then, the FileSystemWatcher stops working (maybe the entire
app, I can't tell). Anyway, the file gets created, the program doesn't see
it. I delete the file manually, and re-create it, nothing. The only fix is
to stop the app and restart it.
I haven't been able to figure out why this might happen. Anyone have any
ideas?