lebedev-aa / pdfviewer-win32

Automatically exported from code.google.com/p/pdfviewer-win32
0 stars 0 forks source link

Memory leak (fix) #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Using the PdfWrapper class from C# will result in severe memory usage when 
repeatedly rendering the PDF. I am using .NET 4.0.

Specifically:
I found that:
1) when using mupdf the mupdfEngine is not deleted (result: pdf file cannot be 
deleted until application is closed)
2) destructor from AFPDFDoc never called due to missing cast

Find attached a SVN patch that fixes those problems. It also fixes a duplicated 
call of Dispose() of PdfWrapper (which never showed up due to the first two 
problems).

I also attached a very slim test program (that is only Form1.cs of it; just 
create a form with a PictureBox and 4 Buttons using default names VisualStudio 
assigns)

And finally there is a "patch" which creates a fine PdfLibNet.dll for .NET 4.0

Original issue reported on code.google.com by notdiffi...@gmx.net on 22 Jan 2011 at 10:03

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks i will to apply the patch in next update

Original comment by plazacom...@gmail.com on 23 Jan 2011 at 5:39

GoogleCodeExporter commented 8 years ago

Original comment by plazacom...@gmail.com on 2 Feb 2011 at 8:38