[Lazarus] Difference between FreeThenNil and FreeAndNil

Alexander Klenin klenin at gmail.com
Wed Apr 27 09:44:15 CEST 2011


On Wed, Apr 27, 2011 at 18:46,  <michael.vancanneyt at wisa.be> wrote:
>
> I mean, if one does
>  FreeAndNil(MyObject);
> It really doesn't matter whether the reference MyObject is set to nil before
> or after the call to Free ?

Sadly, it does, although I do not think it is a good programming practice.
See my first mail in this thread ;-)

-- 
Alexander S. Klenin




More information about the Lazarus mailing list