Re: Memory leak with my virtual printer driver by Vipin[MVP]
Vipin[MVP]
Fri Oct 14 01:53:09 CDT 2005
May I know which application is this? If you are convinced that application
is the cause(which I doubt is the problem if
it is a decent application, that said I have seen acrobat from Adobe also
leak 5 or so GDI handles
per print job but not of the scale you are saying), you may want to leave a
note to the application's support guys.
--
Vipin Aravind
MVP [Windows - Printing/Imaging]
"Arioch" <Arioch@discussions.microsoft.com> wrote in message
news:C2E65200-EAF6-4C88-90CC-CCE8CF87000C@microsoft.com...
>I am dealing with what appears to be the same issue.
>
> We have a virtual printer driver which consists only of an INF and GPD
> file.
> This driver is based on the UNIDRV universal printer driver. Our sole
> purpose
> for this driver is to allow an application to print files which we can
> then
> extract the EMFs contained in the generated spool file.
>
> What we're seeing is some applications that print multiple print jobs
> consecutively do not release handles allocated for a single print job
> (we're
> using SysInternals' Process Explorer to view an individual application's
> local resources). It doesn't take long for the number of allocated handles
> to
> skyrocket into the thousands, causing the application to generate an 'out
> of
> memory' or similar error message. Because the same application can print
> multiple print jobs to any other printer driver without problems, we are
> pretty sure the problem is related to our implementation of the universal
> printer driver.
>
> There is no source code for us to debug, and whatever component is
> allocating the handles and not releasing them is contained within the
> printing application's memory space, so we're having a hard time tracking
> this one down.
>
> Any suggestions?