Application killed while dispatch holding IRP?

Hello all,

Usually I but an IRP on a queue in my dispatch routine and return
STATUS_PENDING, and if the application is killed I get the cancel.

In this design the application creates several threads that send down a
ioctl and the driver’s dispatch just sits on them until it has something to
do (does not complete the irp). Well now when I kill the application, it
just hangs, no cancels anything. I sort of expect this behavior but
anything I can do?

Thx,


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

John,

This is the responsibility of your driver’s IRP_MJ_CLEANUP handler. See
docs (and, much much better, some samples) for IRP_MJ_CLEANUP.

-Tim

Timothy A. Johns — xxxxx@driverdev.com
Driver Development Corporation — 800.841.0092
Bring Up Your Hardware — Fast. www.driverdev.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of John Losche
Sent: Friday, May 11, 2001 1:41 PM
To: NT Developers Interest List
Subject: [ntdev] Application killed while dispatch holding IRP?

Hello all,

Usually I but an IRP on a queue in my dispatch routine and return
STATUS_PENDING, and if the application is killed I get the cancel.

In this design the application creates several threads that send down a
ioctl and the driver’s dispatch just sits on them until it has
something to
do (does not complete the irp). Well now when I kill the application, it
just hangs, no cancels anything. I sort of expect this behavior but
anything I can do?

Thx,


You are currently subscribed to ntdev as: xxxxx@driverdev.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Thanks, but that is not being called either.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com