For some reason I can not remove an event handler from the FileSystemWatcher.
This is what I have
void Start()
{
ivFileSystemWatcher = new FileSystemWatcher();
ivFileSystemWatcher.Changed +=
new FileSystemEventHandler(ivFileSystemWatcher_Changed);
}
void Stop()
{
ivFileSystemWatcher.Changed -=
new FileSystemEventHandler(ivFileSystemWatcher_Changed);
ivFileSystemWatcher.Dispose();
}
When I call start I start receiving the change events, but when I call stop I am expecting the events to stop but they are still being raised.