Click here to Skip to main content
12,893,816 members (52,950 online)
Rate this:
Please Sign up or sign in to vote.

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.
Posted 14-Aug-12 22:39pm
Updated 14-Aug-12 22:40pm
Albert Holguin 15-Aug-12 10:43am
Do you get any assertions in debug mode?
Jackie Lloyd 15-Aug-12 14:29pm
Hi, apologies but I am still learning a lot - I am running in debug so would it be obvious in the output window if I was getting any assertions?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Jochen Arndt 15-Aug-12 11:38am
+5 for this correct and helpful answer. Don't know why it has been one voted.
JackDingler 15-Aug-12 13:31pm
+5 to bring it up a bit. This is a correct answer.
Jackie Lloyd 15-Aug-12 14:27pm
thanks, I think I need to read up on what a First Chance Exception is now then. (Gave +5 too)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170424.1 | Last Updated 15 Aug 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100