我恨VS2010
昨日遇见一怪问题,新建一VS2010 MFC工程,辛苦编写后终得正果,调试通过,不知咋的,稍作代码修改后再次调试,则提示
'NetExtApp.exe': Loaded 'F:\Projects\VC\NetExtApp\Debug\NetExtApp.exe', Symbols loaded.
'NetExtApp.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\mfc100ud.dll', Symbols loaded.
'NetExtApp.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.
'NetExtApp.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16385_none_421189da2b7fabfc\comctl32.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\msimg32.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded.
'NetExtApp.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\acaptuser32.dll', Binary was not built with debug information.
'NetExtApp.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file
'NetExtApp.exe': Unloaded 'C:\Windows\System32\acaptuser32.dll'
'NetExtApp.exe': Unloaded 'C:\Windows\System32\advapi32.dll'
'NetExtApp.exe': Unloaded 'C:\Windows\System32\sechost.dll'
'NetExtApp.exe': Loaded 'C:\Program Files\Kaspersky Lab\Kaspersky Internet Security 2010\mzvkbd3.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Program Files\Google\Google Desktop Search\GoogleDesktopNetwork3.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\ws2_32.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\nsi.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\uxtheme.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\dwmapi.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\mfc100enu.dll', Binary was not built with debug information.
'NetExtApp.exe': Unloaded 'C:\Program Files\Google\Google Desktop Search\GoogleDesktopNetwork3.dll'
'NetExtApp.exe': Unloaded 'C:\Windows\System32\ws2_32.dll'
'NetExtApp.exe': Unloaded 'C:\Windows\System32\nsi.dll'
The thread 'Win32 Thread' (0xf6c) has exited with code 0 (0x0).
'NetExtApp.exe': Loaded 'C:\Windows\System32\cryptbase.dll', Cannot find or open the PDB file
'NetExtApp.exe': Loaded 'C:\Windows\System32\shell32.dll', Cannot find or open the PDB file
The thread 'Win32 Thread' (0x150c) has exited with code 0 (0x0).
Detected memory leaks!
Dumping objects ->
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\occmgr.cpp(195) : {495} normal block at 0x0032BBC8, 8 bytes long.
Data: < > EE 03 00 00 00 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\occmgr.cpp(181) : {494} normal block at 0x0032BA68, 8 bytes long.
Data: < > FF FF FF FF 00 00 00 00
Object dump complete.
The program '[2308] NetExtApp.exe: Native' has exited with code 0 (0x0).
重启VS2010无效,重启Windows无效,按照网上说的方法勾选Tool->Options->Debugging->Symbols无效,无奈用已有的h和cpp文件重建工程,问题解决,可重新开始调试。
但是,半小时后,出现同样错误提示,狂晕……检查其他MFC工程则可正常调试。
我实在不想每次遇到这个情况,都重建工程。请问各位,问题出在哪里?如何解决?如何预防?
谢谢!