Memory leak after rendering a pages in a pdf file

Discussions about image processing and document imaging.
Post Reply
rassekst
Posts: 15
Joined: Thu Oct 04, 2007 6:58 pm

Memory leak after rendering a pages in a pdf file

Post by rassekst » Thu Oct 18, 2012 9:31 pm

Hi,

I have written a program that splitt tha pages of a PDF file into the pages. I use the the method

I rendering every page to a image.
iImagePage = oGdPicturePDFSource.RenderPageToGdPictureImage(300, false);

My PDF file has 80 pages.
The program crash with a "invalid parameter" error in this methods after 48 pages. The memory in the taskmanager is very hight.
I change the parameter from 300 to 72 and the result is ok.
I use then a PDF file with 1300 pages and the program is crashes.
The memory leak is very hight.
Is this normal?
Can I relaese the memory after the rendering?
I use the version 8.2.0.1.

Thanks for the help.

Steffen

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Memory leak after rendering a pages in a pdf file

Post by SamiKharma » Thu Oct 18, 2012 10:11 pm

Hi,

You are probably not releasing the images. You are talking about a lot of images, so after you render a page, save it, then release it using ReleaseGdPictureImage.

Best,
Sami

rassekst
Posts: 15
Joined: Thu Oct 04, 2007 6:58 pm

Re: Memory leak after rendering a pages in a pdf file

Post by rassekst » Thu Oct 18, 2012 11:22 pm

Hi,

Thanks for the quickly help. With this metod works the program fine.

Best,
Steffen

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest