On Tue, 21 May 2019, Mattias Gaertner via fpc-pascal wrote:
On Tue, 21 May 2019 16:47:28 +0100
Graeme Geldenhuys <mailingli...@geldenhuys.co.uk> wrote:
[...]
I fully agree with what Michael said. You can't truly expect
applications developer to trail and error what needs to be done. It's
an LCL issue that the Lazarus project needs to fix. Delphi's VCL,
fpGUI Toolkit and MSEide+MSEgui doesn't require this. Proof that LCL
is doing something wrong or has a bad internal design that needs
fixing.
I don't know what is wrong, with keeping a reference while it is
being destroyed.
Because this should not matter.
By itself there is nothing wrong with it.
The point is that as a user, how am I supposed to know that I must use this
instead of FreeAndNil ?
IOW, why would you need this ? Why does it make a difference ? Why doesn't
Delphi need this ?
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal