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

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

问题描述

我有一个大型的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/zh-cn/library/1deeycx5.aspx

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

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