Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
OutOfMemoryError while converting PDF |
Post Reply |
Author | |
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
Posted: 11 Oct 17 at 1:38PM |
Hi Sebastian,
like tfrost said already: The "Free" is what you need ;-) Here's a "Hello World" for the first steps: http://www.quickpdflibrary.com/tutorials/delphi/hello-world.php After create and unlock you have to insert your loadfromfile and the very last thing should be always a free. If there are still memory lacks. You can stop after a bunch of pages... Keep the actual page number in mind... Doing the Free... Start with a new Create/Unlock/LoadFromFile... Begin again with the same file but the last page number... Cheers and welcome here, Ingo BTW: The starting point for help is here: http://www.quickpdf.org/ |
|
Cheers,
Ingo |
|
tfrost
Senior Member Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
Post Options
Thanks(0)
|
Do you create PDFLibrary at the start of each conversion, and Free it afterwards? If not, that is an obvious thing to try first, and is the pattern I have always used. There may be no huge 'memory leak' in the library, but what you describe may still result from fragmentation if some of the fields of the library object remain in use throughout.
|
|
Seb_Stati
Beginner Joined: 23 May 17 Location: France Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Hello,
I have a big list of PDF files to convert into .jpg files. But at the end of a certain number of conversions, it doesnt work anymore, and I have only OutOfMemory Errors. This is how I convert my files : PDFLibrary->LoadFromFile(filename.c_str(), L""); nbPages = PDFLibrary->PageCount(); PDFLibrary->RenderDocumentToFile(300, 1, nbPages, 1, cible.c_str()); Am I missing something ? Any way to clear memory ? Thanks
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store