有哪些技术可以对 Windows 移动设备上的间歇性访问冲突进行故障排除? [英] What are some techniques for troubleshooting very intermittent Access Violation on a Windows Mobile Device?

查看:24
本文介绍了有哪些技术可以对 Windows 移动设备上的间歇性访问冲突进行故障排除?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个大型 Compact Frameworks V2.0 应用程序,在大多数情况下运行良好.在某些设备上,用户每天大约会收到一次本地错误 0xC0000005,该错误未被标准托管 Try/Catch 块捕获.

I have a large Compact Frameworks V2.0 application that in most cases works very well. On certain devices about once a day, a user receives a Native Error 0xC0000005 that is not caught with the standard managed Try/Catch block.

我的应用程序以固定的时间间隔通过 ASMX 调用与服务器同步.该问题似乎发生在同步过程中.除了同步时发生的 ASMX 调用之外,还有相当多的业务逻辑,但其中 98% 是托管代码.我已经查看了我所有的 P/Invokes 和应用程序本机 C++ 库,此时我大约 95% 确定这不是问题所在.

My application synchronizes with the server via ASMX calls at fixed intervals. The problem appears to occur during synchronization. There is considerable business logic in addition to the ASMX call that happens at the time of the synchronization, but 98% of that is managed code. I've reviewed all my P/Invokes and the applications native C++ libraries and at this point I'm about 95% certain that isn't where the problem is.

由于这种情况只发生在某些设备上,而且很少(每天少于一次),因此很难隔离.我已经对我的代码进行了检测,看起来好像它发生在应用程序中的随机位置,所以我怀疑有什么东西损坏了内存.

Since this only happens on certain devices and very infrequently (less than once a day) it's very difficult to isolate. I've instruemented my code and it appears as if it happens in random places within the application, so I suspect something is corrupting memory.

任何有关如何进一步解决此问题的想法将不胜感激.

Any thoughts on how to troubleshoot this further would be appreciated.

推荐答案

我的原生 C++ 异常处理不包括异步异常,因此没有捕获访问冲突异常.

My native C++ exception handling was not including async exception, and thus was not catching access violation exceptions.

这可能/可能对我的问题没有帮助,但可能对其他人有帮助.

This may/may not be helpful for my problem, but might be helpful for others.

使用此链接中记录的/EHa 开关将允许捕获这些类型的异常:

Using the /EHa switch as documented in this link will allow for catching these types of exceptions:

http://msdn.microsoft.com/en-us/library/1deeycx5.aspx

这篇关于有哪些技术可以对 Windows 移动设备上的间歇性访问冲突进行故障排除?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆