I have a windows service which needs to monitor a directory for files and then move it to another directory. I am using a FileSystemWatcher to implement this.
This i
Your local variable fp get disposed off once it goes out of scope. The solution is to declare it as an instance variable instead