[fpc-pascal] heaptrc unit output

2009-03-31 Thread Alan Krause
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:

Heap dump by heaptrc unit
15648 memory blocks allocated : 692533/768936
15641 memory blocks freed : 692193/768560
7 unfreed memory blocks : 340
True heap size : 753664
True free heap : 752816
Should be : 752896
Call trace for block $B7A58528 size 100
  $B7E1A1C2
  $B7F63DFD
  $B7EA9F16
  $B7E2AD23
  $B7E2B030
  $0804891B
  $B7B03450

I am using fpc 2.2.0, and building the shared library as follows:

fpc -Sd -Cgiro -g -gh -gl -dDEBUG library.pas -Fu../path1 -Fu../path2
-Fu../path3

Am I missing anything, or is this a shared library issue?

Thanks much,
  Alan
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] heaptrc unit output

2009-03-31 Thread Jonas Maebe


On 31 Mar 2009, at 20:12, Alan Krause wrote:


I am using fpc 2.2.0, and building the shared library as follows:

fpc -Sd -Cgiro -g -gh -gl -dDEBUG library.pas -Fu../path1 -Fu../path2
-Fu../path3

Am I missing anything, or is this a shared library issue?


It's a shared library issue. It has been fixed for a number of  
platforms in 2.2.4: http://bugs.freepascal.org/view.php?id=4171 (I  
don't know about Linux though, but I think so).



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] heaptrc unit output

2009-03-31 Thread Alan Krause
Thanks much for the FYI, Jonas.
Alan

On Tue, Mar 31, 2009 at 1:02 PM, Jonas Maebe jonas.ma...@elis.ugent.bewrote:

 It's a shared library issue. It has been fixed for a number of platforms in
 2.2.4: http://bugs.freepascal.org/view.php?id=4171 (I don't know about
 Linux though, but I think so).

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal