如何跟踪COM对象异常? [英] How to trace COM objects exceptions?

查看:179
本文介绍了如何跟踪COM对象异常?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 DLL 和一些 COM对象。有时,此对象会崩溃,并在Windows事件日志中注册大量十六进制信息的错误事件。我没有线索为什么这个崩溃发生。

I have a DLL with some COM objects. Sometimes, this objects crashes and register an error event in the Windows Event Log with lots of hexadecimal informations. I have no clue why this crashes happens.

那么,如何跟踪这些COM对象异常?

So, How can I trace those COM objects exceptions?

推荐答案

第一步是查找失败代码的十六进制值(EG E_FAIL 0x80004005)。我已经真的很好运在谷歌发布的价值,以了解错误代码的意义。

The first step is to lookup the Fail code's hex value (E.G. E_FAIL 0x80004005). I've had really good luck with posting that value in Google to get a sense of what the error code means.

然后,我只是使用试验和错误尝试隔离失败的代码中的位置,以及失败的根本原因。

Then, I just use trial and error to try to isolate the location in code that's failing, and the root cause of the failure.

这篇关于如何跟踪COM对象异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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