'mt.exe': Loaded 'E:\mtsrc\mt\Debug\mt.exe', Symbols loaded.
'mt.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\secur32.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oci.dll', Binary was not built with debug information.
'mt.exe': Loaded 'C:\WINDOWS\system32\msvcr71.dll'
'mt.exe': Loaded 'E:\mtsrc\mt\Debug\sfun.dll', Symbols loaded.
'mt.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_5d84dd2f\msvcr90d.dll', Symbols loaded.
'mt.exe': Loaded 'C:\WINDOWS\system32\user32.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\wininet.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\normaliz.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\urlmon.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\ole32.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\iertutil.dll'
'mt.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugOpenMP_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_76bf1c89\vcomp90d.dll', Symbols loaded.
'mt.exe': Loaded 'C:\Program Files\Visual Leak Detector\bin\vld.dll'
'mt.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_d495ac4e\msvcr90.dll', Symbols loaded.
'mt.exe': Loaded 'C:\Program Files\Visual Leak Detector\bin\dbghelp.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\imm32.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\lpk.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\usp10.dll'
'mt.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.3959_x-ww_D8713E55\comctl32.dll'
Visual Leak Detector Version 1.9h installed.
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oraclient10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oracore10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oranls10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oraunls10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orauts.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\winmm.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oravsn10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oracommon10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orageneric10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orasnls10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oraxml10.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\msvcirt.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oran10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oranl10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oranldap10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orannzsbb10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oraldapclnt10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orancrypt10.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\wsock32.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oranro10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oranhost10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orancds10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orantns10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orapls10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\ORASLAX10.DLL'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oraplp10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orahasgen10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oraocr10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\oraocrb10.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\netapi32.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\psapi.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orantcp10.dll'
'mt.exe': Loaded 'C:\oracle\product\10.2.0\client_1\BIN\orasql10.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\mswsock.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\dnsapi.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\winrnr.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\wldap32.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\rasadhlp.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\shell32.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\version.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\rasapi32.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\rasman.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\tapi32.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\rtutils.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\userenv.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\msapsspc.dll', Cannot find or open a required DBG file.
'mt.exe': Loaded 'C:\WINDOWS\system32\msvcrt40.dll'
'mt.exe': Unloaded 'C:\WINDOWS\system32\msapsspc.dll'
'mt.exe': Unloaded 'C:\WINDOWS\system32\msvcrt40.dll'
First-chance exception at 0x0302c9d2 in mt.exe: 0xC0000005: Access violation reading location 0x71d50000.
First-chance exception at 0x0302c787 in mt.exe: 0xC0000005: Access violation reading location 0x71d50014.

'mt.exe': Loaded 'C:\WINDOWS\system32\sensapi.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\hnetcfg.dll'
'mt.exe': Loaded 'C:\WINDOWS\system32\wshtcpip.dll'
//////////////////////////////////////////////////////////////////////////////////////First-chance exception at 0x0302c9d2 in mt.exe: 0xC0000005: Access violation reading location 0x71d50000.
First-chance exception at 0x0302c787 in mt.exe: 0xC0000005: Access violation reading location 0x71d50014.我怎么定位抛出异常在代码中位置?大家帮帮我谢谢

解决方案 »

  1.   

    结合PDB,用windbg等来找对应位置
      

  2.   

    不明真相的群众围观
    windbg很好很强大
      

  3.   


    就是DEBUG状态哦,但是程序没有停止,不知道从那里出来的,只有输出窗口有这样错误提示
      

  4.   

    windbg 调, 别用vc自带的. 如果是栈被破坏了 调用堆栈 是不可信的