I have a problem when printing reports to a PDF file. My program generates a PDF file that contains 107 pages. Every page has 5 small pictures on it and some text.
When I start the creation of the PDF file the memory usage of the EXE file grows from about 100 MB to 1250 MB. And even when the report has been finished the memory usage remains the same.
Does anybody has an idea why the memory is not being deallocated when the report has been finished?
Not specifically, not, unless the memory allocation is 'owned' by TD and not RB. Does memory get deallocated when you close your app? And/or if running from the IDE when you close TD v6?Does anybody has an idea why the memory is not being deallocated when the report has been finished?
In the meantime I made some more tests and I found out that it doesn't matter how I start the application. If I start the compiled EXE file directly the memory usage during the creation of the PDF file is going up from 20 MB up to 1250 MB. When the report has been finished the memory is not deallocated. When closing the whole application the memory is deallocated.
When I start the application out of the IDE by pressing F7 the memory usage of cbi60.exe goes up from 20 MB up to 1250 MB when creating the PDF file. After finishing the report the memory is not deallocated. Even when I close the application the memory usage of cbi60.exe in task manager is still at 1250 MB.
Who is online
Users browsing this forum: [Ccbot] and 0 guests