[fpc-pascal] heaptrc question

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Apr 27 17:53:23 CEST 2012


On 27 Apr 2012, at 17:50, Carver Carver wrote:

> I am experiencing strange heaptrc output can someone please explain what sort of error could trigger this
> 
> Heap dump by heaptrc unit
> 6590 memory blocks allocated : 6484894/6508528
> 6590 memory blocks freed     : 6484894/6508528
> 0 unfreed memory blocks : 0
> True heap size : 229376
> True free heap : 282512
> Should be : 229376

Unless heap trace reports that there are unfreed blocks, there is no error. The fact that the other numbers don't match up exactly is due to allocations that occur before the heaptrc unit is initialized (e.g., in the startup code of the system unit).


Jonas


More information about the fpc-pascal mailing list