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 » Draw, Display, Images, Bitmaps, Icons » Image into a polimorphic array
Image into a polimorphic array [message #13279] Fri, 28 December 2007 14:52 Go to next message
andrei-catalin is currently offline  andrei-catalin
Messages: 62
Registered: May 2006
Location: Romania
Member
I've tried to store multiple shapes into an polimorphic array but for Image I've received "Heap leaks" error.

Andrei
Re: Image into a polimorphic array [message #13317 is a reply to message #13279] Tue, 01 January 2008 10:56 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12105
Registered: November 2005
Ultimate Member
andrei-catalin wrote on Fri, 28 December 2007 08:52

I've tried to store multiple shapes into an polimorphic array but for Image I've received "Heap leaks" error.

Andrei


Missing virtual destructor:

struct Shape
{
	virtual void Description() {}
	virtual ~Shape() {}
};


Mirek
Re: Image into a polimorphic array [message #13352 is a reply to message #13317] Wed, 02 January 2008 19:37 Go to previous message
andrei-catalin is currently offline  andrei-catalin
Messages: 62
Registered: May 2006
Location: Romania
Member
Thank you very much and a

"Happy new year!" for you and for every U++ user.

Andrei
Previous Topic: Bug in DrawText and Font issue
Next Topic: Slow image drawing on big images
Goto Forum:
  


Current Time: Thu Nov 21 19:44:36 CET 2019

Total time taken to generate the page: 0.00867 seconds