SEH exception with code 0xc0000005 thrown in the test body

在用Visual Studio时遇到这个报错。原因:访问了非法的内存地址。

这个问题不应该被忽略,通常是代码有bug。

解决办法:

VS2013: 菜单->Debug->Exceptions

VS2015: 菜单->Debug->Windows->Exception Settings
495962-20190322164709423-1890250669.png

确保所有项都打勾,然后调试运行,出现第一个报错的地方就是非法访问内存的bug,改掉它。

参考:https://stackoverflow.com/questions/13157671/seh-exception-with-code-0xc0000005-thrown-in-the-test-body

The way I just found the problem was that in Visual Studio I went to Debug->Exceptions, and checked everything in the first column. Then run/debug your unit tests, and it will throw an exception on the line that the problem is at. That's where you need to debug/fix it.

For visual studio 2015: Debug->Windows->Exception Settings

转载于:https://www.cnblogs.com/zjutzz/p/10579265.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值