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

PDF: Out of Resources

edited July 2008 in General
I've a report that contains a TppRichText object. When printing to a PDF
file, I get a Out of Resources error after printing about 178 pages.

Happens in TppPDFUtils.DrawCommandToBitmap:

Result.Canvas.Draw(-aDrawCommand.DrawLeft, -aDrawCommand.DrawTop,
lScreenDevice.PageImage);

Is this is known bug?

Using v10.07 / Delphi 2007.

Comments

  • edited July 2008
    never seen it--can you create a demo for support? if so, send it to
    support@digital-metaphors.com

    Ed Dressel
    Team DM

  • edited July 2008

    The error Out Of Resources occurs when an application contains
    memory/resource leaks. Try running your application under a tool that can
    check for leaks. AQTime is a good tool. FastMM can also be used.

    The line of code that encounters exception does not indicate where the leak
    occurs - the leak could be occuring anywhere in the app.

    Using RB 10.09 I ran a simple test report under a memory/resource leak
    checker and it did not find anything. The report contains a DBRichText and I
    generated it to PDF.



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.