Click here to Skip to main content
15,878,852 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
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.
Posted
Updated 14-Aug-12 22:40pm
v2
Comments
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

 
Share this answer
 
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900