I've been using the heaptrc unit in DEBUG versions of my application to detect memory leaks. However, when a memory leak is detected, it does not include any information on the unit, line number, etc - just the hex addresses, like this:<br>
<br>Heap dump by heaptrc unit<br>15648 memory blocks allocated : 692533/768936<br>15641 memory blocks freed : 692193/768560<br>7 unfreed memory blocks : 340<br>True heap size : 753664<br>True free heap : 752816<br>Should be : 752896<br>
Call trace for block $B7A58528 size 100<br> $B7E1A1C2<br> $B7F63DFD<br> $B7EA9F16<br> $B7E2AD23<br> $B7E2B030<br> $0804891B<br> $B7B03450<br><br>I am using fpc 2.2.0, and building the shared library as follows:<br>
<br>fpc -Sd -Cgiro -g -gh -gl -dDEBUG library.pas -Fu../path1 -Fu../path2 -Fu../path3<br><br>Am I missing anything, or is this a shared library issue?<br><br>Thanks much,<br> Alan<br>