HidLibrary
HidLibrary copied to clipboard
read, readreport hang up if not resceiving data
Both read and readreport have an overlay with an timeout. As I understand this, they should release an return nothing ? if this timeouttime is reached. But they dont, they are still hanging up. t.ex. Hiddev.readreport(500).
Maybe this timeout means something else??
Kajj
Does anyone have a comment for this issue ?
I'm trying to use read(timeout) and readreport(timeout) but timeout doesn't seem to work ?
I'm looking into this issue. It seems like sometimes the read thread gets swallowed up by the operating system.
For now, and just to be 100% sure: did you open the device in overlapped mode?
Hiddev.OpenDevice(DeviceMode.Overlapped, DeviceMode.Overlapped);