写了一个程序,其中调用了一些DLL,是视频采集卡和图像采集的,该程序还被作为服务器把得到的采集图片发到客户端,但是程序运行了一段时间后就报错,程序并未全死,还能继续通信,
报错内容如下:"应用程序发生异常,未知的软件异常(Ox0eedfade),位置为0x77e6f142."点击"取消"进入调试时报出如下出错信息:
"Unhandled exception in Park.exe(KERNEL32.DLL):0x0eedfade:(no mame)."点击F5单步追踪调试,出现以下内容:
Unhandled exception in Park.exe:0xC0000005: Access Violation.汇编断点停在:"04ED8783 test bl,bl"output信息内容如下:
Loaded symbols for 'D:\Park\Debug\Park.exe'
Loaded 'C:\WINNT\system32\ntdll.dll', no matching symbolic information found.
Loaded symbols for 'C:\WINNT\system32\MFC42D.DLL'
Loaded symbols for 'C:\WINNT\system32\MSVCRTD.DLL'
Loaded 'C:\WINNT\system32\kernel32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\gdi32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\user32.dll', no matching symbolic information found.
Loaded symbols for 'C:\WINNT\system32\MFCO42D.DLL'
Loaded 'C:\WINNT\system32\wsock32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\ws2_32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\msvcrt.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\advapi32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\rpcrt4.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\ws2help.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\mpr.dll', no matching symbolic information found.
Loaded 'D:\Park\Debug\FriendVLP.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\comdlg32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\shlwapi.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\comctl32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\shell32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\winspool.drv', no matching symbolic information found.
Loaded 'C:\WINNT\system32\msvfw32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\winmm.dll', no matching symbolic information found.
Loaded 'D:\Park\Debug\libmySQL.dll', no matching symbolic information found.
Loaded 'D:\Park\Debug\tmSDK.dll', no matching symbolic information found.
Loaded 'D:\Park\Debug\tmman32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\ddraw.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\dciman32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\imm32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\mfc42loc.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\indicdll.dll', no matching symbolic information found.
Loaded 'C:\Program Files\3721\Helper.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\msafd.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\wshtcpip.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\ntlanman.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\netui0.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\netui1.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\netapi32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\secur32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\netrap.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\samlib.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\wldap32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\dnsapi.dll', no matching symbolic information found.
Loaded 'D:\Park\Debug\JpgDll.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\version.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\lz32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\oleaut32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\ole32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\rnr20.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\iphlpapi.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\icmp.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\mprapi.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\activeds.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\adsldpc.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\rtutils.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\setupapi.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\userenv.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\rasapi32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\rasman.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\tapi32.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\dhcpcsvc.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\clbcatq.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\winrnr.dll', no matching symbolic information found.
Loaded 'C:\WINNT\system32\rasadhlp.dll', no matching symbolic information found.
The thread 0x29F34 has exited with code 0 (0x0).
First-chance exception in Park.exe: 0xC0000005: Access Violation.
First-chance exception in Park.exe: 0xC0000005: Access Violation.
First-chance exception in Park.exe: 0xC0000005: Access Violation.
First-chance exception in Park.exe: 0xC0000005: Access Violation.
First-chance exception in Park.exe: 0xC0000005: Access Violation.
First-chance exception in Park.exe: 0xC0000005: Access Violation.
The program 'D:\Park\Debug\Park.exe' has exited with code 0 (0x0).查找了一些资料,估计是指针或内存泄漏,因为程序过手的人太多了,所以模透程序可能还有一段时间,如果有哪位同仁知道类似问题的解决方案,麻烦指点一下,谢谢

解决方案 »

  1.   

    For VC++ 6.0:-Start debugging your program.
    -Go to Debug | Exceptions...
    -Choose "e06d7363 Microsoft C++ Exception" from the bottom of the "Exceptions" list.
    -Choose "Stop always"
    -Click "Change"
    -Click "OK"Now your debugger will stop when it encounters a first-chance C++ exception, and you can examine the call stack, etc, and investigate. (You may need to restart the debugging session, if the exception has taken place before you get this setting changed.)
      

  2.   

    It seems that you handled this excpetion,
    so the debugger got only the first chance excetion.
      

  3.   

    唉,这种问题比较难查。明知道是指针错,定位问题还是难。看能不能从汇编窗口切换到source
      

  4.   


    For VC++ 6.0:-Start debugging your program.
    -Go to Debug | Exceptions...
    -Choose "e06d7363 Microsoft C++ Exception" from the bottom of the "Exceptions" list.
    -Choose "Stop always"
    -Click "Change"
    -Click "OK"Now your debugger will stop when it encounters a first-chance C++ exception, and you can examine the call stack, etc, and investigate. (You may need to restart the debugging session, if the exception has taken place before you get this setting changed.)