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

How to resolve reported leak after emailing

edited November 2007 in General
Hi All,

D2007, RB 10.06 Ent, ppSMTPIndy10, FastMM4.

I have a fairly simple app that generates a staff rota(roster) and emails
each staff member their own copy. I always get the memory leak, shown below,
reported on shutdown.

The report component is generated in code, the template loaded from DB. The
same report instance is used for the duration of the run with only an
autosearchfield value changed for each different recipient.

I have tried it both with the built in RB PDF and also ExtraDevices PDFFile.

3 emails using built in RB PDF
This application has leaked memory. The small block leaks are (excluding
expected leaks registered by pointer):
5 - 12 bytes: TIdThreadSafeInteger x 1
13 - 20 bytes: TppPDFProcSet x 3, TppPDFGState x 3, TppPDFCatalog x 3
21 - 28 bytes: TIdCriticalSection x 2, TppPDFPageTree x 3
29 - 36 bytes: TppPDFInfo x 3

4 emails generated using ExtraDevices PDFFile
5 - 12 bytes: TIdThreadSafeInteger x 1
13 - 20 bytes: TppPDFCatalog x 4, TppPDFProcSet x 4, TppPDFGState x 4
21 - 28 bytes: TIdCriticalSection x 2, TppPDFPageTree x 4
29 - 36 bytes: TppPDFInfo x 4


Any pointers please on how to avoid this please.

Regards, Paul.

Comments

This discussion has been closed.