读书人

cximage简单有关问题

发布时间: 2012-03-20 14:01:11 作者: rapoo

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库本身有问题。

读书人网 >VC/MFC

热点推荐