Cracked it! After spending all spare time for six days finally nailed it to this, recorded here for the posterity.
I did not call IOHIDManagerSetDeviceMatching(hidmgr, null); before (in device enumeration) calling: IOHIDManagerCopyDevices(hidmgr); What an insidious feature in IOKit, without that call everything seems to work, except if you unplug a device then something is left dangling inside IOKit and IOHIDManagerCopyDevices will return the unplugged device among other devices. br Kusti ________________________________ This e-mail may contain confidential or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. We will not be liable for direct, indirect, special or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on or as of transmission of this e-mail in general.
_______________________________________________ Do not post admin requests to the list. They will be ignored. Usb mailing list (Usb@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/usb/archive%40mail-archive.com This email sent to arch...@mail-archive.com