Print Page | Close Window

iOS memory leaks

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3207
Printed Date: 24 Apr 25 at 6:11AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: iOS memory leaks
Posted By: asyle83
Subject: iOS memory leaks
Date Posted: 18 Nov 15 at 4:05PM
Hi,
I have many problems with memory leaks. Each operation with the library allocates memory and never release it.
For large operations the app crashes with "out of memory" error.
I can't find methods to free up the memory (I tried RemoveDocument without success).
The objects allocated are of internal types of the library, for example TPDFName, TPDFdictionary, TPDFArray... and we talk about thousand of allocations.
Are there methods to free up the memory from extern of the library?

Thanks,
Elisa 



Replies:
Posted By: Ingo
Date Posted: 23 Nov 15 at 9:10PM
Hi Elisa,

you won't free memory with RemoveDocument.
I don't know how developement with iOS works but the normal library needs only a "Free" to release the instance and this means all allocated memory-sections.

Cheers and welcome here,
Ingo



-------------
Cheers,
Ingo



Posted By: asyle83
Date Posted: 24 Nov 15 at 7:53AM
Hi Ingo, 
there is no Free method in iOS. This is a Pascal method. 
The support released to me a new beta version that fixes the memory leaks problem.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk