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

救灾啊创建了个MFC项目出现不明BUG

2013-12-10 
救急啊,创建了个MFC项目出现不明BUG用vs2010的MFC向导创建了个对话框项目,就加了个Button和RichEdit,然后

救急啊,创建了个MFC项目出现不明BUG
用vs2010的MFC向导创建了个对话框项目,就加了个Button和RichEdit,然后用向导创建不了Button的单击事件就自己手动加了个,然后运行程序,程序跑了下就自动退出了。
输出窗口有如下提示,怎么解决呢

“ACSProject.exe”: 已加载“C:\Documents and Settings\tianxinwei\桌面\ACSProject\Debug\ACSProject.exe”,已加载符号。
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\ntdll.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\kernel32.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\mfc100ud.dll”,已加载符号。
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\msvcr100d.dll”,已加载符号。
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\user32.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\gdi32.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\shlwapi.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\advapi32.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\rpcrt4.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\secur32.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\msvcrt.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\comctl32.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\msimg32.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\oleaut32.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\ole32.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\imm32.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\lpk.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\usp10.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\uxtheme.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\mfc100chs.dll”,未使用调试信息生成二进制文件。
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\shell32.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\Program Files\360\360Safe\safemon\safemon.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\psapi.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\wininet.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\crypt32.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\msasn1.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\version.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\ws2_32.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\ws2help.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\netapi32.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\MSCTF.dll”,Cannot find or open the PDB file
“ACSProject.exe”: 已加载“C:\WINDOWS\system32\MSCTFIME.IME”,Cannot find or open the PDB file
Detected memory leaks!
Dumping objects ->
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\occmgr.cpp(195) : {444} normal block at 0x0039D740, 32 bytes long.
 Data: <                > 01 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\occmgr.cpp(181) : {443} normal block at 0x0039D6F0, 20 bytes long.
 Data: <                > FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 
Object dump complete.
程序“[5492] ACSProject.exe: 本机”已退出,返回值为 0 (0x0)。


[解决办法]
代码功能归根结底不是别人帮自己看或讲解或注释出来的;而是被自己静下心来花足够长的时间和精力亲自动手单步或设断点或对执行到某步获得的中间结果显示或写到日志文件中一步一步分析出来的。
提醒:再牛×的老师也无法代替学生自己领悟和上厕所!
单步调试和设断点调试是程序员必须掌握的技能之一。

[解决办法]
向导文件已损坏, 重建工程吧, 就两个控件

热点排行