Debug Memory Leak in Printer Driver

I have created a printer driver for image manipulation and have noticed
memory usage for spoolsv is not being freed up when printing through my
driver. What recommendations do you have to observe or track memory leaks?
Thanks in advance and all help is appreciated.

Thanks,
Keith

I’ve used pageheap.exe very successfully in the past
(http://support.microsoft.com/kb/286470).

Haven’t needed or used it for a couple of years though. I remember it
was a little confusing to set up, but worked great once I figured it
out.

Also, looking at task manager values for memory used isn’t necessarily
an indication of a memory leak in your driver.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Keith Dickerson
Sent: Thursday, February 14, 2008 12:54 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Debug Memory Leak in Printer Driver

I have created a printer driver for image manipulation and have
noticed memory usage for spoolsv is not being freed up when printing
through my driver. What recommendations do you have to observe or track
memory leaks? Thanks in advance and all help is appreciated.

Thanks,
Keith
— NTDEV is sponsored by OSR For our schedule of WDF, WDM,
debugging and other seminars visit: http://www.osr.com/seminars To
unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Faced similar problem,Used rational purify to track the memory leaks.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Friday, February 15, 2008 12:46 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Debug Memory Leak in Printer Driver

I’ve used pageheap.exe very successfully in the past
(http://support.microsoft.com/kb/286470).

Haven’t needed or used it for a couple of years though. I remember it
was a little confusing to set up, but worked great once I figured it
out.

Also, looking at task manager values for memory used isn’t necessarily
an indication of a memory leak in your driver.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Keith Dickerson
Sent: Thursday, February 14, 2008 12:54 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Debug Memory Leak in Printer Driver

I have created a printer driver for image manipulation and have
noticed memory usage for spoolsv is not being freed up when printing
through my driver. What recommendations do you have to observe or track
memory leaks? Thanks in advance and all help is appreciated.

Thanks,
Keith
— NTDEV is sponsored by OSR For our schedule of WDF, WDM,
debugging and other seminars visit: http://www.osr.com/seminars To
unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer