[Lazarus] Difference between FreeThenNil and FreeAndNil
graemeg.lists at gmail.com
Wed Apr 27 17:14:20 CEST 2011
On Wednesday, 27 April 2011, <michael.vancanneyt@******> wrote:
> On Wed, 27 Apr 2011, Alexander Klenin wrote:
> But what does this have to do with the problem you mention in FreeAndNil ?
>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.
- Graeme -
fpGUI - a cross-platform Free Pascal GUI toolkit
More information about the Lazarus