debug 输出:
Detected memory leaks!
Dumping objects ->
strcore.cpp(118) : {252} normal block at 0x01952E40, 127 bytes long.
Data: < 9 r E:\P> 01 00 00 00 39 00 00 00 72 00 00 00 45 3A 5C 50
strcore.cpp(118) : {251} normal block at 0x01952EF0, 255 bytes long.
Data: < 'a2.> 01 00 00 00 E6 00 00 00 F2 00 00 00 27 61 32 2E
strcore.cpp(118) : {250} normal block at 0x01951B10, 43 bytes long.
Data: < Micr> 01 00 00 00 0F 00 00 00 1E 00 00 00 4D 69 63 72
oledisp2.cpp(385) : {249} client block at 0x01951A30, subtype 0, 36 bytes long.
a COleDispatchException object at $01951A30, 36 bytes long
Object dump complete.
The thread 0x65C has exited with code 0 (0x0).
The program 'C:\MAPTOOL03C\試験項目自動抽出\Src\vc\DataEdit\DataEdit\Debug\DataEdit.exe' has exited with code 0 (0x0).
帮忙啊!
Detected memory leaks!
Dumping objects ->
strcore.cpp(118) : {252} normal block at 0x01952E40, 127 bytes long.
Data: < 9 r E:\P> 01 00 00 00 39 00 00 00 72 00 00 00 45 3A 5C 50
strcore.cpp(118) : {251} normal block at 0x01952EF0, 255 bytes long.
Data: < 'a2.> 01 00 00 00 E6 00 00 00 F2 00 00 00 27 61 32 2E
strcore.cpp(118) : {250} normal block at 0x01951B10, 43 bytes long.
Data: < Micr> 01 00 00 00 0F 00 00 00 1E 00 00 00 4D 69 63 72
oledisp2.cpp(385) : {249} client block at 0x01951A30, subtype 0, 36 bytes long.
a COleDispatchException object at $01951A30, 36 bytes long
Object dump complete.
The thread 0x65C has exited with code 0 (0x0).
The program 'C:\MAPTOOL03C\試験項目自動抽出\Src\vc\DataEdit\DataEdit\Debug\DataEdit.exe' has exited with code 0 (0x0).
帮忙啊!
解决方案 »
- 有两个线程:WorkerFunction 和ttproc,变量是在ttproc里声明,如何在另一个线程WorkerFunction 里调用?
- 改变框架类的View
- 关于EDIT 和SPIN 控件的问题!!!
- 高分求助,oracle的效率问题,很简单。
- 如何让简、繁两个版本的网页共享一个数据库?
- 如何自定义文件对话框
- 关于mime
- 数据平均分配的算法问题
- fatal error C1189:
- 如何选中用MFC函数画出的图形,并对其进行删除,复制,旋转和移动等操作。
- 在VC.NET中Date Time Picker ,Show none 功能怎么用???(急,回答者马上送分)
- 请教各位大虾,如何在程序启动时同时显示两个模式Dialog?
和::CoUninitialize()
2、你设置的缓冲区是不是足够大比如在定义数组的时候是不是越界了
3、如果在程序中使用了new,也应该有相同数目的 delete,否则也会产生内存泄漏
4、你在程序中是否使用了GDI资源,比如CBitmap.CPen........这些资源用完之后一定要释放
通常是第一种,自己查一下有没有忘记delete自己new的东东?
我的没有判断,就出现了内存泄漏,原来以为我已经delete了,问题不应该出现在这里的,哪知问题就是在这里
还有一种可能是使用了数据库的SQL语句,如果出了异常,这个SQL字符串不会被释放,需要使用如下的宏
TRY
{SQL}
CATCH(CDBException, e)
END_CATCH