Forum > Debugger

Heap dump by heaptrc unit on Windows

(1/2) > >>

ricardo.consolo:
Hi.

When in debug mode (Windows 7 32 bits), I got this message when closing the application:

---------------------------
Error
---------------------------
Heap dump by heaptrc unit
9426 memory blocks allocated : 2495279/2522280
9426 memory blocks freed     : 2495279/2522280
0 unfreed memory blocks : 0
True heap size : 294912
True free heap : 294832
Should be : 294912

---------------------------
OK   
---------------------------

The same application does not show that on Linux (Centos 6 32 bits).

Any clue?

Thanks.

howardpc:
Perhaps on Linux the heaptrc output is being sent to a nonexistent or hidden window, or maybe your Linux compilation setup is not set to generate heaptrc output at all.

Ondrej Pokorny:
Linux sends it to the standard output.

avra:
Have you tried to uncheck "Use Heaptrc unit" in Project options / compiler options / debugging ?

Thaddy:
And fortunately heaptrc also reports there's not much wrong with your code?  O:-) That memory will be free'd.
If you want to use the heaptrc unit and keep it (only with -gh,not as an include in the uses clause)  there's also the option to compile with UseHeapTrace:= False.
Which skips the report.

But make sure that you did not add heaptrc to a uses clause anywhere yourself!. See the recent wiki.
http://wiki.freepascal.org/heaptrc

Avra's pointer is correct by the way: that selects or un-selects -gh for you.

Navigation

[0] Message Index

[#] Next page

Go to full version