Dear all,
I meet a problem. My USB driver on windows 2Kand XP sometimes fail to
allocate non-paged pool. So it result in the drvier can not work.
BTW, I also find memory leak problem. How to track the leaked memory?
Any suggestion will be appreciated.
Thanks
David_Lee
Get 10mb of inbox space with MSN Hotmail Extra Storage
http://join.msn.com/?pgmarket=en-sg
Zhihua Li,
You have to code for allocation failure.
Did you consider that it is very likely that your allocation failure is
caused by your memory leak?
Track memory leaks by assigning unique pool tag values to either each type
of object you allocate, or each location in your code where you call
ExAllocatePoolWithTag. Use either windbg. This will narrow down which
allocations are leaking. Use windbg or pooltags to monitor allocations. Then
go review your code until you understand which allocation does not have a
corresponding deallocation in all cases.
=====================
Mark Roddy
Hollis Technology Solutions
www.hollistech.com
xxxxx@hollistech.com
-----Original Message-----
From: zhihua Li [mailto:xxxxx@hotmail.com]
Sent: Friday, August 15, 2003 4:01 AM
To: Windows System Software Developers Interest List
Subject: [ntdev] Driver allocate memory fail
Dear all,
I meet a problem. My USB driver on windows 2Kand XP sometimes fail to
allocate non-paged pool. So it result in the drvier can not work. BTW, I
also find memory leak problem. How to track the leaked memory?
Any suggestion will be appreciated.
Thanks
David_Lee
Get 10mb of inbox space with MSN Hotmail Extra Storage
http://join.msn.com/?pgmarket=en-sg
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@stratus.com To
unsubscribe send a blank email to xxxxx@lists.osr.com