Dave's Brain

Browse - Programming Tips - When I am using GDI+ my program crashes when I delete an object. Why?

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-2017, 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.