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

Memory leak

edited June 2008 in General
Hi!

I noticed that there is a small memory leak, when exception is raised on
the OnPrintDialogCreate procedure:

1 - 12 bytes: String x 1
13 - 20 bytes: String x 3
21 - 28 bytes: TCriticalSection x 2, TppPageDef x 4
109 - 116 bytes: TppPrinterSetup x 2


Best,
Mart



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited June 2008
    AFAIK anytime an exception is raised in a constructor (OnCreate) you will
    most probably have a memory leak as it is not clear what resources were
    created and can be destroyed.

    Ed Dressel
    Team DM

This discussion has been closed.