Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Polymorphic Array doubt
Re: Poluporphyc Array doubt [message #33425 is a reply to message #33424] Thu, 04 August 2011 10:30 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1427
Registered: September 2007
Ultimate Contributor
tojocky wrote on Thu, 04 August 2011 11:21

Hello,

If in the base class is not set virtual destructor, and detect memory leak in example of Koldo, is this a bug?

In my case on win32 and linux 32 (ubuntu 11.04) have the same behavor (memory leak).

Regards,
Ion.

I say it is a programming error. Without he virtual destructor, the compiler can't free the cal the destructor of the string from StringNumber. It will always call the destructor for type T, in this case Number.
 
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: Mon Jul 07 17:01:59 CEST 2025

Total time taken to generate the page: 0.04146 seconds