找不到com错误的来源. [英] Can't find source of com errors.

查看:101
本文介绍了找不到com错误的来源.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用C ++和VS 2008编写一个SDI MFC应用程序,该应用程序使用xml DOM方法来解析xml文档并将其打开到文档视图中.
当我在调试中运行时,我在输出中收到很多消息,如下所示:
BWE.exe Microsoft C ++中0x7c812afb处的优先机会异常:内存位置0x00128334处的_com_error

我已经调试了代码,正在检查HRESULTS,并且无法将任何地址与代码中的内容进行匹配,并且在执行代码并且执行消失到MFC代码中之后,出现消息.

我想摆脱这些例外,但真的不知道下一步该怎么做.有什么方法可以获取导致它们的原因的更多信息吗?

预先感谢任何可以提供帮助的人.

Hi,

I''m writing a SDI MFC application using C++ and VS 2008 which uses the xml DOM methods to parse xml documents and open them into the document view.

When I run in debug I get a lot of messages in the output like this:
First-chance exception at 0x7c812afb in BWE.exe Microsoft C++ exception: _com_error at memory location 0x00128334

I have debugged through my code and am checking HRESULTS and can''t match any of the addresses with things in my code and the messages appear after my code has been executed and execution disappears off into the MFC code.

I want to get rid of these exceptions but really don''t know what to do next. Is there any way to get any more info on what is causing them?

Thank you in advance to anyone who can help.

推荐答案

保持冷静.

首次机会异常消息通常并不表示代码中存在问题.对于能够优雅地处理异常的应用程序/组件,首次机会异常消息会让开发人员知道遇到并已处理了特殊情况. [
Stay cool.

First chance exception messages most often do not mean there is a problem in the code. For applications / components which handle exceptions gracefully, first chance exception messages let the developer know that an exceptional situation was encountered and was handled.[^]

Hope this helps,

Pablo.


这篇关于找不到com错误的来源.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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