First-chance exception at 0x782260ec in xxx.exe: 0xC0000005: Access violation

开发的软件可以通过按钮创建子窗体,在win7下测试正常,在winXP下崩溃。于是搜到以下帖子,没有讲到直接解决方法,因为貌似没有直接解决的方式。

通过里边的设置可以捕获异常,然后再分析代码。

原帖地址

 

'First-chance exception' usually means an exception that has been handled by user code. If you're using the Vosual Studio & the Windows Mobile emulator for debug then you can turn off exception handling. Go to Debug > Exceptions and check the 'Thrown' column for Win32 Exceptions. Then run the program and try and get it to fall over again.

When the debug runs it will halt execution and break to the debugger when it hits that 'first-chance exception' allowing you to see what is causing that, and see if it's in any way related.

The 'netcfagl3_5.dll' library is part of .NET CF, not your code, which is why you can't match up the debug symbols.

 

 

我的错误信息如下:First-chance exception at 0x00B59CBC in 磁性窗体.exe: 0xC0000005: Access violation reading location 0xFEEF000A.

捕获异常后定位如下图

win7下解决方式是讲OnClose中的 delete[] this 删除,但到XP下还是没有解决问题....

所以程序崩溃,我也很崩溃

 

转载于:https://www.cnblogs.com/Lthis/p/4625564.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值