| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1152 人关注过本帖
标题:[求助]vc++程序调试问题!
只看楼主 加入收藏
EX_CAINIAO
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-5-28
收藏
 问题点数:0 回复次数:4 
[求助]vc++程序调试问题!
是内存泄漏吧。调试报告如下。但是不知道是哪里出现的内存泄漏。怎么排除啊?看不懂啊!!大家帮帮我啊。

Detected memory leaks!
Dumping objects ->
D:\Personal\Desktop\EX_STU\EX_STUView.cpp(21) : {77} client block at 0x00431090, subtype 0, 144 bytes long.
a CEX_STUView object at $00431090, 144 bytes long
strcore.cpp(118) : {73} normal block at 0x004312E0, 19 bytes long.
Data: < EX_S> 01 00 00 00 06 00 00 00 06 00 00 00 45 58 5F 53
strcore.cpp(118) : {72} normal block at 0x00431320, 60 bytes long.
Data: < / / EX_S> 01 00 00 00 2F 00 00 00 2F 00 00 00 45 58 5F 53
D:\Personal\Desktop\EX_STU\MainFrm.cpp(18) : {71} client block at 0x00431390, subtype 0, 480 bytes long.
a CMainFrame object at $00431390, 480 bytes long
D:\Personal\Desktop\EX_STU\EX_STUDoc.cpp(17) : {70} client block at 0x004315A0, subtype 0, 388 bytes long.
a CEX_STUDoc object at $004315A0, 388 bytes long
plex.cpp(31) : {69} normal block at 0x00431750, 124 bytes long.
Data: < C > 00 00 00 00 00 00 00 00 00 00 00 00 C0 18 43 00
{68} client block at 0x00431800, subtype 0, 32 bytes long.
a CDocManager object at $00431800, 32 bytes long
strcore.cpp(118) : {67} normal block at 0x00431850, 60 bytes long.
Data: < / / EX_S> 01 00 00 00 2F 00 00 00 2F 00 00 00 45 58 5F 53
D:\Personal\Desktop\EX_STU\EX_STU.cpp(82) : {66} client block at 0x004318C0, subtype 0, 108 bytes long.
a CSingleDocTemplate object at $004318C0, 108 bytes long
strcore.cpp(118) : {64} normal block at 0x00431960, 19 bytes long.
Data: < File> 01 00 00 00 06 00 00 00 06 00 00 00 46 69 6C 65
strcore.cpp(118) : {63} normal block at 0x004319A0, 29 bytes long.
Data: < Rece> 01 00 00 00 10 00 00 00 10 00 00 00 52 65 63 65
{62} normal block at 0x004319F0, 20 bytes long.
Data: < L_ L_ L_> 04 00 00 00 14 CB 4C 5F 14 CB 4C 5F 14 CB 4C 5F
{61} normal block at 0x00431A30, 32 bytes long.
Data: << K_ C C > 3C 8D 4B 5F 04 00 00 00 F4 19 43 00 AC 19 43 00
Object dump complete.
The thread 0xBD8 has exited with code 3 (0x3).
The program 'D:\Personal\Desktop\EX_STU\Debug\EX_STU.exe' has exited with code 3 (0x3).
搜索更多相关主题的帖子: 内存 cpp 调试 bytes 
2006-05-28 14:13
cathypu0725
Rank: 1
等 级:新手上路
帖 子:26
专家分:0
注 册:2006-5-26
收藏
得分:0 
全工程搜一下,new的变量,是否最后都用delete删除了,这是最简单的内存泄漏.
2006-05-29 10:48
aogun
Rank: 5Rank: 5
等 级:贵宾
威 望:17
帖 子:638
专家分:0
注 册:2006-4-5
收藏
得分:0 
信息里不都写得很清楚了吗?
X_STUView.cpp(21)即文件EX_STUView.cpp的21行申请的内存没有释放
strcore.cpp(118) 即文件strcore.cpp的118处申请的内存没有释放,以此类推

世界上总共有 10 种人,一种懂得什么是二进制 ,一种不懂。
2006-05-29 10:59
aogun
Rank: 5Rank: 5
等 级:贵宾
威 望:17
帖 子:638
专家分:0
注 册:2006-4-5
收藏
得分:0 
还有,你双击泄漏信息就可以直接到达错误行

世界上总共有 10 种人,一种懂得什么是二进制 ,一种不懂。
2006-05-29 10:59
myajax95
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:30
帖 子:2978
专家分:0
注 册:2006-3-5
收藏
得分:0 
而且泄漏内存的class是从CObject继承下来的。

http://myajax95./
2006-05-29 12:42
快速回复:[求助]vc++程序调试问题!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015630 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved