Dave's Brain

Browse - programming tips - gdiplus delete crash

Date: 2007dec18
Platform: win32

Lanuage: C++

Q.  When I am using GDI+ my program crashes when I delete an object.  Why?

A.  Its probably because your program is set to debug.  This overrides
C++ new and delete.

Instead of:
	
	delete pMyObj;

Use 

	DllExports::GdipFree(pMyObj);

This page has an answer but it doesn't work for me
http://support.microsoft.com/kb/317799
What this info useful to you? You can donate to say thanks

Add a comment

Sign in to add a comment
Copyright © 2008-2012, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.