Problem with dispatch cleanup in OSR inverted call sample

Hello,
I’m studying the Inverted Call Model sample by OSR and run into this
problem. To test the Cleanup dispatch, I run a number of client apps
(testApp.exe) and then close them randomly. First close is OK, but
subsequence ones might result in an access error in
CancelPendingRequestList. MmIsAddressValid returns false
for dataRequest->Irp and/or
IoGetCurrentIrpStackLocation(dataRequest->Irp). It looks like these
irps are from the previously closed apps but have not been cleaned-up.
Is there anything I should do to these invalid irps beside removing
them from the queues? TIA.

Chu Bun

My bad. These irps are from the other running applications. Adding a few
if’s to skip them seems to solve the problem.

“ChuBun” wrote in message news:xxxxx@ntdev…
>
> Hello,
> I’m studying the Inverted Call Model sample by OSR and run into this
> problem. To test the Cleanup dispatch, I run a number of client apps
> (testApp.exe) and then close them randomly. First close is OK, but
> subsequence ones might result in an access error in
> CancelPendingRequestList. MmIsAddressValid returns false
> for dataRequest->Irp and/or
> IoGetCurrentIrpStackLocation(dataRequest->Irp). It looks like these
> irps are from the previously closed apps but have not been cleaned-up.
> Is there anything I should do to these invalid irps beside removing
> them from the queues? TIA.
>
> Chu Bun
>
>
>
>