FileSystemWatcher

  • Thread starter Thread starter daveL
  • Start date Start date
D

daveL

When a File is Created , Why does FileSystemWatcher Fire 2 Events both
Created Events

DaveL
 
Hi Dave,

It shouldn't. You might have managed to add two subscriptions to the same
event, both pointing to the same method. This can happen if you run the code
that creates a subscription without removing any preexisting subscriptions
first.
 
daveL said:
When a File is Created , Why does FileSystemWatcher Fire 2 Events
both Created Events

Hi - I have a hazy memory of seeing this some years ago when I wrote a
program using FileSystemWatcher. It had something to do with the
application which was creating the file - maybe it was somehow
initiating 2 "create events" or something. Sorry I can't remember more,
but I'm sure you can find some help via Google.... :-|

/Peter
 
Back
Top