[fpc-devel] Redefine FillChar() to use out parameter instead

Marco van de Voort marcov at stack.nl
Thu Nov 19 11:42:14 CET 2009


In our previous episode, Graeme Geldenhuys said:
> > initialized. But be warned: with such a parameter type you can easily
> > create memory leaks with automated types like ansistrings.
> 
> Well, isn't that what heaptrc is for?  I enable heaptrc by default for
> all my projects (except on release builds). That way I can catch memory
> leaks as soon as I introduced them - and much easier to find. I would
> recommend this to all.

No. That is for memory leaks you accidentally forget, AFTER ALL HAS BEEN
DONE TO AVOID THEM.



More information about the fpc-devel mailing list