when generating multiple PDF I get out of GDI handles
Hello,
I have to read from database informations and generate PDF files.
After 35 to 40 files I get the message that canvas can not be written
and then a ntdll.dll error.
I made some debug sessions and today I started using GDIview while going
step by step through the report generation.
I discovered that when in ppEngine.pas
Generate is called at line Line 521
many device contexts are generate.
They are never freed, even when I call FreenAndNil(myreport)
I use version 15.
Thanks
Andreas
I have to read from database informations and generate PDF files.
After 35 to 40 files I get the message that canvas can not be written
and then a ntdll.dll error.
I made some debug sessions and today I started using GDIview while going
step by step through the report generation.
I discovered that when in ppEngine.pas
Generate is called at line Line 521
many device contexts are generate.
They are never freed, even when I call FreenAndNil(myreport)
I use version 15.
Thanks
Andreas
This discussion has been closed.
Comments
Which exact version of ReportBuilder are you using and which version of
Delphi are you using?
Exporting to PDF and the report engine are not related. Does this only
occur when exporting to PDF or are you seeing this behavior when
generating to other devices (Screen, Printer, File)?
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Hello Nico,
I use Delphi XE6 and report Builder 16 Build 324.
It looks like it has to do with PDF only. If I print, then de Number of
DC does not grow respectively it does for a small ammount and then it drops.
Thanks
Andreas
There is a patch available for RB 16 that solves this issue. Registered
users of RB 16 can email support@ to receive the patch.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com