Home » U++ Library support » U++ Core » Polymorphic Array doubt
Re: Poluporphyc Array doubt [message #33416 is a reply to message #33413] |
Wed, 03 August 2011 09:39   |
 |
mirek
Messages: 14265 Registered: November 2005
|
Ultimate Member |
|
|
Didier wrote on Tue, 02 August 2011 04:35 |
mirek wrote on Mon, 01 August 2011 12:50 |
Didier wrote on Mon, 01 August 2011 05:52 | Hi Koldo and Honza,
I noticed that the virual destructor was sometimes missing in some controls, ex: RichEditWithToolBar
Fortunatly this does not lead to any leaks (most of the time) thank's to the "everything belongs somewhere" in U++.
But this is a real bug.
|
'virtuality' of destructor is inherited in C++. Therefore, as long as Ctrl has virtual destructor (and it does...), all derived classes have one too.
Mirek
|
Humm,
I remember some work I did 10 years ago and this was not true then, but if gcc deals with it now : great !
|
Well, this is so basic feature that if it would not work, compiler would be seriously broken...
|
|
|
Goto Forum:
Current Time: Sun Jul 06 00:00:57 CEST 2025
Total time taken to generate the page: 0.03698 seconds
|