HidLibrary icon indicating copy to clipboard operation
HidLibrary copied to clipboard

read, readreport hang up if not resceiving data

Open kajj opened this issue 13 years ago • 2 comments

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

kajj avatar Jul 26 '12 08:07 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 ?

dchangNW1 avatar Jun 27 '14 02:06 dchangNW1

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);

amullins83 avatar Jun 27 '14 15:06 amullins83