Hi All,
I am using the usbsamp driver for communicating to a self powered usb device. When
application is continuosly polling for response from the device. During this time if the host is put to standby mode, the host crashes.
The WinDbg log looks like:
Thread 0x89E7D580 is waiting for all inflight requests on WDFQUEUE 0x76515310 to be acknowledged
Break instruction exception - code 80000003(first chance)
Please help me to solve this. How to handle this stanby situation in the usbsamp code.
The error message says it all. You need to ack or complete in flight requests in your power managed wdfqueue. The queue is blocked on one of them. !wdfkd.wdfqueue wil tell you which requests are waiting for action, the error message you posted contains the same info
d
tiny phone keyboard + fat thumbs = you do the muth
-----Original Message-----
From: xxxxx@gmail.com
Sent: Monday, March 29, 2010 4:20 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Dump in usbsamp during system standyby
Hi All,
I am using the usbsamp driver for communicating to a self powered usb device. When
application is continuosly polling for response from the device. During this time if the host is put to standby mode, the host crashes.
The WinDbg log looks like:
Thread 0x89E7D580 is waiting for all inflight requests on WDFQUEUE 0x76515310 to be acknowledged
Break instruction exception - code 80000003(first chance)
Please help me to solve this. How to handle this stanby situation in the usbsamp code.
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Thanks Don…but please let me know how can i mark the request as complete and in which event handler…
You are missing a couple of letters from my name, it is not don. (how hard is it to copy and paste? Sheesh.) you complete the request by calling wdfrequestcomplete. You ack the request by calling another wdfrequest or wdfqueue api, i will let you search the help to figure that one out (clue: an important ack callback can be registered in the queue condfig struct when you create the queue).
d
tiny phone keyboard + fat thumbs = you do the muth
-----Original Message-----
From: xxxxx@gmail.com
Sent: Tuesday, March 30, 2010 12:15 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Dump in usbsamp during system standyby
Thanks Don…but please let me know how can i mark the request as complete and in which event handler…
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
On 3/30/2010 9:18 AM, Doron Holan wrote:
You are missing a couple of letters from my name, it is not don.
OP should IMHO at least get two “brownie points” for (1) not calling you
“Doran”, and (2) for not using “doubt” instead of “question”. 
ok…to start i m sorry doron…
i got ur hint…i regsitered the EvtIoStop callback and then called wdfrequeststopacknowledgement. The crash is not happening now…is there something more that should be done in the clean up process…? thanks a lot guys…