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

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: 14290
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: Tue Apr 28 19:39:13 GMT+2 2026

Total time taken to generate the page: 0.00594 seconds