[lazarus] Order of destruction in TCustomListBox
Micha Nelissen
micha at neli.hopto.org
Sat Dec 13 13:27:11 EST 2003
Mattias Gaertner wrote:
> On Sat, 13 Dec 2003 17:27:00 +0100 Micha Nelissen <micha at neli.hopto.org>
> wrote:
>
>
>>Mattias Gaertner wrote:
>>
>>>I think, we should keep fItems like the VCL until after the "inherited
>>>Destroy;".
>>
>>Do you know why the order is like it is in the VCL?
>
>
> Only Borland knows for sure.
> Probably because calling the inherited Destroy produces notifications, which
> can call code, that accesses the listbox items and would otherwise need some
> ifs.
Aah, the 'yucky'-ness of Object Pascal :-(.
Micha.
More information about the Lazarus
mailing list