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

Add a comment

Sign in to add a comment
Copyright © 2008, dave - Code on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License.