Hi,
Mu code is very similar to the FX2 sample.
From some reason, it reaches the CMyReadWriteQueue::OnCompletion (of a read operation) method before the device sends data, and gets hr = 0xD0000001 error (which, as I understand is ERROR_INVALID_FUNCTION), info = 0.
I defined the timeout to be zero, so it should waut forever for the data. How could it be that it got there sooner?
I must mention that my firmware code restarts, and a few initializations occur over there (but not all), but I do not reset the USB line, nor do I re-enumerate the device, so the driver is not supposed to know there was a difference (the HID driver continues working normally), and should not timeout while waiting for OnRead.
Can I control this isuue in the driver’s code, or is it a firmware issue?
Thanks,
Gadi