[Lazarus] Difference between FreeThenNil and FreeAndNil

Alexander Klenin klenin at gmail.com
Wed Apr 27 18:46:52 CEST 2011


On Thu, Apr 28, 2011 at 02:14, Graeme Geldenhuys
<graemeg.lists at gmail.com> wrote:
>
> >From that bug report it looks like a bug in TAChart, not in
> FreeAndNil(). I have written a crap load of components in my time,
> including composite components, and never had a problem with freeing
> children or subcomponents. You just need to do it in the right order,
> and obviously not reference something that is already free'd.
>

That is quite possible, but neither me nor Martin was unable to find it.
I'd appreciate any specific insight if you have it.

-- 
Alexander S. Klenin




More information about the Lazarus mailing list