U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » Polymorphic Array doubt
Re: Poluporphyc Array doubt [message #33413 is a reply to message #33410] Tue, 02 August 2011 10:35 Go to previous messageGo to previous message
Didier is currently offline  Didier
Messages: 740
Registered: November 2008
Location: France
Contributor
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 !
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PLATFORM_X11 warnings
Next Topic: BUG? or Not BUG? LoadFile(filename) and then getting wrong data
Goto Forum:
  


Current Time: Sun Nov 01 12:37:51 GMT+1 2026

Total time taken to generate the page: 0.30495 seconds