0xC0000005: Access Violation
来源:互联网 发布:2017程序员工资 编辑:程序博客网 时间:2024/05/24 15:41
vc编程debug时提示
First-chance exception in exShowBmp.exe (HOOKDLL.DLL): 0xC0000005: Access Violation.
First-chance exception in exShowBmp.exe: 0xC0000005: Access Violation.
可能的原因:
内存访问错误。应该是访问了不该访问的地方,可能是使用“野指针”访问造成的。比如访问一个已经释放了堆空间,或者退出函数后使用指向堆栈空间中变量的指针等等。这种致命的问题一定要仔细解决彻底,不留后患.
也可能是访问了不可读的内存,那应该怎么办呢?
仔细检查每个指向堆中的指针,确认没有越界或者已经释放。
检查数组下标是否越界.
也可能是:
1,没有初始化变量。
2,多线程使用时,该指针已经被其它线程置位为无效指针仍然操作指针内容。
3, 低级错误:变量类型使用错误,将普通数值当作指针使用。
- 0xC0000005: Access Violation
- 0xC0000005: Access Violation
- NTDLL.DLL): 0xC0000005: Access Violation-解决方法
- 0xC0000005: Access Violation 非法访问
- (NTDLL.DLL):0xC0000005:Access Violation
- Unhandled exception 0xC0000005:Access Violation
- Crash Analyzing-- 0xC0000005: Access violation writing location 0x00000010
- 0xC0000005: Access violation reading location 0x00ef1000.
- unhandled exception in .exe :0xC0000005:Access Violation.
- unhandled exception in *.exe (MFC42D.DLL):0xC0000005:Access Violation
- 如何解决MFCO42D.dll 0xC0000005:Access Violation问题
- Unhandled exception in XX.exe:0xC0000005:Access Violation”
- 如何解决 xxx.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
- vc6GDI+合成图片(NTDLL.DLL): 0xC0000005: Access Violation
- Unhandled exception 0xC0000005: Access violation writing location
- 如何解决MFCO42D.dll 0xC0000005:Access Violation问题
- First-chance exception in MFCDibImshow.exe: 0xC0000005: Access Violation.
- unhandled exception in XXX:0xC0000005:access violation问题
- WinCE 开机自动运行
- 抽奖程序 Award
- ExtJS 动态增加与删除items,动态设置textField可见与否
- WINCE平台初始化配置文件
- 考虑清楚
- 0xC0000005: Access Violation
- SQL Error:An aggregate may not appear in the set list of an UPDATE statement.
- fopen和open区别
- 【转】Oracle性能调优原则
- 如何在BuildForge的通知邮件中使用最新的环境变量
- MS Sql server查看对象方法(完善中)
- 2010-01-07
- 正则表达式 ,验证时间正则函数 超强!
- Asp.net利用ExcelLibrary输出EXCEL