First-chance exception in Park.exe: 0xC0000005: Access Violation.

littleline 2006-05-26 04:09:34
写了一个程序,其中调用了一些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).

查找了一些资料,估计是指针或内存泄漏,因为程序过手的人太多了,所以模透程序可能还有一段时间,如果有哪位同仁知道类似问题的解决方案,麻烦指点一下,谢谢
...全文
2875 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
MuseIn 2006-06-20
  • 打赏
  • 举报
回复



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.)
Could 2006-06-16
  • 打赏
  • 举报
回复
It seems that you handled this excpetion,
so the debugger got only the first chance excetion.
周江涛 2006-06-16
  • 打赏
  • 举报
回复
唉,这种问题比较难查。明知道是指针错,定位问题还是难。

看能不能从汇编窗口切换到source
gdsdyl 2006-06-16
  • 打赏
  • 举报
回复
通常情况下使用野指针有时会报类似的错误.
实际情况需要调试才能确定.有时在程序中把指针指向的内存释放了,而指针变量的值确没有置空,下次再使用指针变量时,该变量指向的内存已作它用.
striking 2006-06-15
  • 打赏
  • 举报
回复
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.)
pomelowu 2006-06-15
  • 打赏
  • 举报
回复
只有你自己看CallStack了。
DentistryDoctor 2006-06-15
  • 打赏
  • 举报
回复
这种问题没有代码没办法调试。
syy64 2006-05-26
  • 打赏
  • 举报
回复
一般是指针指向了非法地址或数组越界。
lqm1003 2006-05-26
  • 打赏
  • 举报
回复
路过顶一下
littleline 2006-05-26
  • 打赏
  • 举报
回复
麻烦大家路过顶一下,谢谢

15,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧