I create some event in my app, and create one thread waiting for the
event ,and pass the event to driver , after driver receive some data
then set the event ,But it seems not stable, after receive some data,
system always show ATTEMPTED_SWITCH_FROM_DPC in the soft-ice, why?
Does it give the same response under WinDbg? I’d turn Driver Verifier on
and run it under WinDbg. I’ve heard enough problems with SoftIce and
single machine debug that I first would suspect Compuware’s over priced
debugger.
Also, have you compiled with DRVFAST and PREFAST. This may be a far
stretch for a runtime error but one never knows what can cause runtime to
hiccup.
Gary G. Little
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Thursday, March 16, 2006 4:07 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] About ATTEMPTED_SWITCH_FROM_DPC
Hi,All,
I create some event in my app, and create one thread waiting for the
event ,and pass the event to driver , after driver receive some data
then set the event ,But it seems not stable, after receive some data,
system always show ATTEMPTED_SWITCH_FROM_DPC in the soft-ice, why?
You should point the driver verifer at your device driver. That may
make the error more apparent.
What does the stack trace show? This bugcheck (IIRC) means that some
thread tried to wait on a dispatcher object or yield the processor at
dispatch level. The stack trace would probably show which thread was
trying to switch.
The verifier should try to catch your driver returning at higher IRQL
than it was called at, which can cause some bizarre and
hard-to-track-down problems.
-p
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jack Niu Niu
Sent: Thursday, March 16, 2006 2:07 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] About ATTEMPTED_SWITCH_FROM_DPC
Hi,All,
I create some event in my app, and create one thread waiting for the
event ,and pass the event to driver , after driver receive some data
then set the event ,But it seems not stable, after receive some data,
system always show ATTEMPTED_SWITCH_FROM_DPC in the soft-ice, why?