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

Graeme Geldenhuys graeme at mastermaths.co.za
Thu Nov 19 10:41:32 CET 2009

Florian Klaempfl wrote:
> 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.

  - Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

More information about the fpc-devel mailing list