[fpc-pascal] Checking if a TStringList already exists
Michael Van Canneyt
michael at freepascal.org
Tue May 21 18:38:16 CEST 2019
On Tue, 21 May 2019, Mattias Gaertner via fpc-pascal wrote:
> On Tue, 21 May 2019 16:47:28 +0100
> Graeme Geldenhuys <mailinglists at 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.
More information about the fpc-pascal
mailing list