[Lazarus] Difference between FreeThenNil and FreeAndNil

Alexander Klenin klenin at gmail.com
Wed Apr 27 11:55:36 CEST 2011

2011/4/27  <michael.vancanneyt at wisa.be>:
> Which is simply wrong coding in the destructor.
> I don't think you should provide for this. This is encouraging people to
> write bad code. They should get an error, and correct their code.

Well, I have already said this is not a good practice, haven't I?
But, it is not that easy to fix -- the calls are usually separated
by many levels of nesting, including the message loop.

Alexander S. Klenin

More information about the Lazarus mailing list