[Lazarus] How do you get a report of unfreed objects in Lazarus after a program runs?

Vincent Snijders vincent.snijders at gmail.com
Wed Dec 14 09:56:57 CET 2011


>>
>> In your main file, call SetHeapTraceOutput in heaptrc:
>>
>> procedure SetHeapTraceOutput(const name : string);
>>
>> This is a documented feature:
>>
>> http://www.freepascal.org/docs-html/rtl/heaptrc/setheaptraceoutput.html

The logfile can be read with the leakview ide plugin, that you can
find in the lazarus/components directory.

Vincent




More information about the Lazarus mailing list