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
Memory leak after rendering a pages in a pdf file
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: Memory leak after rendering a pages in a pdf file
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
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
Re: Memory leak after rendering a pages in a pdf file
Hi,
Thanks for the quickly help. With this metod works the program fine.
Best,
Steffen
Thanks for the quickly help. With this metod works the program fine.
Best,
Steffen
Who is online
Users browsing this forum: No registered users and 1 guest