Hi
I think Oney is answering your question only . He already gave answer to my
question which is the Synchronous IRP will be automatically released by the
System ( or IO Manager) and we should not touch it by again calling
‘IoFreeIrp’ . My doubt was just to know who will be taking responsibility of
freeing the IRP .
In your case, for Asynchronous IRP , calling ‘IoFreeIrp’ in the completion
routine should not cause crash I believe. Anyway there should be a mistake
somewhere .
Thanks
srinivasa
-----Original Message-----
From: Kommuri, Chakradhar [mailto:Chakradhar.Kommuri@hp.com]
Sent: Wednesday, October 16, 2002 9:12 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Question about IoBuildDeviceIoControlRequest ;
Please Ignore the first message uncompleted
Well, I guess you mistook me for the one who posted the question.
Anyway, my point is, when I tried to free the IRP built in
‘Asynchronous’ build, it crashed. So, it is either you cannot free the
IRP or there is something wrong I am doing. Since the topic came up and
your book is my bible, you tell me.
-----Original Message-----
From: Walter Oney [mailto:xxxxx@oneysoft.com]
Sent: Wednesday, October 16, 2002 11:08 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Question about IoBuildDeviceIoControlRequest ;
Please Ignore the first message uncompleted
“Kommuri, Chakradhar” wrote:
I tried this. This is my implementation:
I have a low level driver. Above that I am running another driver
which builds ‘Asynchronous’ IRP sends down to my first driver. In the
top level driver, when I called IoFreeIrp, it would crash. Anything
wrong?
First you said you were using IoBuildDeviceIoControlRequest, which is
for a *synchronous* IPR. Now you’re saying it was an asynchronous IRP,
which you must have built some other way. Which is it?
–
Walter Oney, Consulting and Training
Basic and Advanced Driver Programming Seminars
Now teaming with John Hyde for USB Device Engineering Seminars Check out
our schedule at http://www.oneysoft.com
You are currently subscribed to ntdev as: chakradhar.kommuri@hp.com To
unsubscribe send a blank email to %%email.unsub%%
You are currently subscribed to ntdev as: xxxxx@microtune.com
To unsubscribe send a blank email to %%email.unsub%%