Device Removed Event

Apr 25, 2013 at 6:06 PM

I'm currently trying to detect the suppression of a device using the appropriate Handler:
 Discovery disc = new Discovery(null, AddressFamilyFlags.IPv4, false);

 disc.DeviceAdded += new DeviceAddedEventHandler(discDeviceAdded);
 disc.DeviceRemoved += new DeviceRemovedEventHandler(discDeviceRemoved);

The problem is that when the device is unplugged, nothing happens.
And when I plug it, there is an alternation between "device added" and "device removed"... Certainly cause of the device synchronization....

I would like to know if it is possible to detect the lack of the device when it is unplugged.

Thanks for your help !