[fpc-pascal] negative numbers in CurrHeapUsed and MaxHeapUsed

Marco van de Voort marcov at stack.nl
Fri Oct 22 22:06:47 CEST 2010


In our previous episode, Bernd Kreuss said:
> > It's only a cosmetic problem, there is no problem with the heap itself. It's a known bug, related to reallocmem: http://bugs.freepascal.org/view.php?id=15805
> 
> If I understand this correctly then these are only meaningless counters
> that come out of sync. Is there a way to ask the heap manager directly
> for the "real" numbers? The heap manager must somehow be able to know
> this or calculate this, it cannot rely on these broken counters or it
> would eventually crash or otherwise misbehave, wouldn't it?

No. The heap structures for operation are intact, but the routines to
calculate the counters not.

The counters are for human presentation only, and have no other function.



More information about the fpc-pascal mailing list