[fpc-pascal]ReAlloc Question

Michael Van Canneyt michael.vancanneyt at wisa.be
Fri May 16 16:27:47 CEST 2003

On Fri, 16 May 2003 memsom at interalpha.co.uk wrote:

> James,
> didn't I send you a revised version of this ages ago... even if you dumped the
> whole of it I would have pointed out why not to use Init and Done over Create
> and Destroy. I'll tell you one good reason why you may have memory
> leaks... 'done' will never get called if you 'free' an instance of TStrings.
> That alone will cause a memory leak.
> You did see TList too, right? TStringList and TList will do everything you
> want, and TObjectList is another good one (if fpc has it implemented.)

It is implemented.


More information about the fpc-pascal mailing list