[fpc-devel] ReallocMem & TotalAllocated: Round 2
Marco van de Voort
marcov at stack.nl
Wed Feb 17 22:29:32 CET 2010
In our previous episode, Nikolai Zhubr said:
> Please note that while the problem itself is quite stable, the example
> is not. That is, if you insert or remove some code, change the filename
> etc, then the example might just start work properly! (Maybe it is
> alignment-related, not sure)
>
> I haven't sent this to mantis yet. Please someone let me know if this
> example is appropriate (or not).
I think so, please enter it in Mantis.
I quickly looked around and noticed two things:
1)
It is also striking that it seems to happen on the first realloc of a NIL
ptr, maybe that is a scenario not properly updated, sizewise.
2)
I also see a "exit(true)" in systryresize that doesn't update sizes.
More information about the fpc-devel
mailing list