How to detect memory leak???

Hi,
I got a USB device driver to fix. Problem, this driver
is leaking memory. I used poolmon.exe, it shows the
memory leak, but I could not figure out the piece of
code which is leaking.
Can anyone tell me the how can I locate the leaking
code?

TIA…

Dav


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

by looking at the tag…

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-ntdev-
xxxxx@lists.osr.com] On Behalf Of David
Sent: Tuesday, October 21, 2003 4:51 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to detect memory leak???

Hi,
I got a USB device driver to fix. Problem, this driver
is leaking memory. I used poolmon.exe, it shows the
memory leak, but I could not figure out the piece of
code which is leaking.
Can anyone tell me the how can I locate the leaking
code?

TIA…

Dav


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@aut.utt.ro
To unsubscribe send a blank email to xxxxx@lists.osr.com

You can also use the windbg command “!verifier” to find out about the
size and content of your allocations; this might give you some good
hints.

Mat

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Raul Igrisan
Sent: Tuesday, October 21, 2003 10:01 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] RE: How to detect memory leak???

by looking at the tag…

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-ntdev-
xxxxx@lists.osr.com] On Behalf Of David
Sent: Tuesday, October 21, 2003 4:51 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to detect memory leak???

Hi,
I got a USB device driver to fix. Problem, this driver
is leaking memory. I used poolmon.exe, it shows the
memory leak, but I could not figure out the piece of
code which is leaking.
Can anyone tell me the how can I locate the leaking
code?

TIA…

Dav


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@aut.utt.ro
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@cvdsinc.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

There used to be a two file source ( a c file, and a h file) for tracking
memory programmetically up on sysinternals web, not sure if they still have
or not. Also you might some footprint of this on the web somewhere…

They were easy to embedded with other source code, and was very helpful in
finding leaks …

-prokash
----- Original Message -----
From: “David”
To: “Windows System Software Devs Interest List”
Sent: Tuesday, October 21, 2003 6:50 AM
Subject: [ntdev] How to detect memory leak???

> Hi,
> I got a USB device driver to fix. Problem, this driver
> is leaking memory. I used poolmon.exe, it shows the
> memory leak, but I could not figure out the piece of
> code which is leaking.
> Can anyone tell me the how can I locate the leaking
> code?
>
> TIA…
>
> Dav
>
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@garlic.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Also you can use John Robbins - Bug Slayer column article and vary it to
link with you application. I used it to find a leak some ISDN call stacks
we had in a driver here. The source code is included with the Bug Slayer
article. It works “kind-of-like” parenthesis matching does where
functions come in pairs - one to allocate another to free. It will show
you where there is a unmatched free.

I can send you (if you want) a tool that is pretty intuitive and
monitors your driver for different types of memallocs (pools/lookasides)
and pinpoints allocations to the source code. I’ve been using it for a
while and it works for me just fine.

Vladimir

-----Original Message-----
From: David [mailto:xxxxx@yahoo.com]
Sent: Tuesday, October 21, 2003 6:51 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to detect memory leak???

Hi,
I got a USB device driver to fix. Problem, this driver
is leaking memory. I used poolmon.exe, it shows the
memory leak, but I could not figure out the piece of
code which is leaking.
Can anyone tell me the how can I locate the leaking
code?

TIA…

Dav


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as:
xxxxx@borland.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

>> I can send you (if you want) a tool that is pretty intuitive and

how about putting it on web
and giving us all a link to it?
This can help a lot of people.

-Farooque Khan
http://farooque.150m.com

“Vladimir Chtchetkine” wrote in message
news:xxxxx@ntdev…

I can send you (if you want) a tool that is pretty intuitive and
monitors your driver for different types of memallocs (pools/lookasides)
and pinpoints allocations to the source code. I’ve been using it for a
while and it works for me just fine.

Vladimir

-----Original Message-----
From: David [mailto:xxxxx@yahoo.com]
Sent: Tuesday, October 21, 2003 6:51 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to detect memory leak???

Hi,
I got a USB device driver to fix. Problem, this driver
is leaking memory. I used poolmon.exe, it shows the
memory leak, but I could not figure out the piece of
code which is leaking.
Can anyone tell me the how can I locate the leaking
code?

TIA…

Dav

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as:
xxxxx@borland.com
To unsubscribe send a blank email to xxxxx@lists.osr.com