首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

cximage简单有关问题

2012-03-20 
cximage简单问题?CxImage*imagenewCxImage()deleteimage为何报错?Thismaybeduetoacorruptionoftheheap,

cximage简单问题?
CxImage*     image   =   new   CxImage();

delete   image;

为何报错?

This   may   be   due   to   a   corruption   of   the   heap,   and   indicates   a   bug   in   gg.exe   or   any   of   the   DLLs   it   has   loaded.

[解决办法]
如果是调用的DLL,很有可能是编译的模式不对,应该保持都是DEBUG或RELEASE,如果是在程序里直接使用类,应该是析构函数里处理出错。
[解决办法]
1、new delete中间还有别的语句吗?是否有删除该类的语句;
2、内存紊乱;
3、Cximage库本身有问题。

热点排行