[fpc-pascal] Help with understanding HeapTrc output
graemeg.lists at gmail.com
Tue Nov 4 08:59:57 CET 2008
On Mon, Nov 3, 2008 at 8:17 PM, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>> 3) I should trace the information from the bottom line to the top line...
> It's a backtrace, like when an exception or run time error occurs. The top
> line is the actual place where the allocation happened, the next is the
> caller of that place, etc.
Perfect, that's what I wanted to confirm.
>> 4) Why does it quote more than one line? If I allocated memory on a
>> specific line, should just that line be quoted?
> I don't understand what you mean with "quote more than one line". However,
> things like this:
JoshyFun's explanation helped here. It's the code path (sequence)
leading up to the 'allocate memory' call.
Thanks both to Jonas and JoshyFun for helping out. Incidently, my
application is now "leak-free". :-)
I also made a note to self:
"Enabled heaptrc unit for all projects while I develop! It's easier
to trace the problem just after you caused it, than to try and hunt it
down weeks later."
- Graeme -
fpGUI - a cross-platform Free Pascal GUI toolkit
More information about the fpc-pascal