[Lazarus] Difference between FreeThenNil and FreeAndNil
florian at freepascal.org
Wed Apr 27 19:32:17 CEST 2011
Am 27.04.2011 18:46, schrieb Alexander Klenin:
> 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.
Did you run the code with valgrind or using a heaptrc unit compiled with
More information about the Lazarus