Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

when generating multiple PDF I get out of GDI handles

edited December 2014 in General
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

Comments

  • edited December 2014
    Hi Andreas,

    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)?

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2014
    Am 16.12.2014 um 16:08 schrieb Nico Cizik (Digital Metaphors):
    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
  • edited December 2014
    Hi 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.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.