Advertisement

06.30.2008 at 09:22AM PDT, ID: 23527442
[x]
Attachment Details

How do we catch an exception thrown by an embedded IE webbrowser control?

Asked by amitabhg in Microsoft Visual C++.Net, C++ Programming Language, Microsoft Visual C++

Tags: , ,

hi.

im running VC++ 6, IE 6. if the embedded IE crashes, i would like to safely handle that exception in my app but for some reason im unable to catch it.

e.g. if i navigate to http://immike.net/scripts/ie_crash.html, my app crashes with

"First-chance exception in Testcrash.exe (MSHTML.DLL): 0xC0000005: Access Violation."

any idea?

amitabhStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
void CIEBasicBrowser::NavigateToURL(const CString& strURL)
{
    try
    {	
	if(m_pBrowserApp != NULL)
	{
	    COleVariant vURL(strURL, VT_BSTR);
	    COleVariant vFlags(long(0x0));
	    m_pBrowserApp->Navigate2(&vURL, &vFlags, NULL, NULL, NULL);
	}
    }
    catch(...)
    {
        AfxMessageBox("crashed");
    }
}
 
 
[+][-]06.30.2008 at 10:01AM PDT, ID: 21900929

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.30.2008 at 10:14AM PDT, ID: 21901050

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.30.2008 at 12:14PM PDT, ID: 21902141

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.30.2008 at 12:41PM PDT, ID: 21902383

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 11:47PM PDT, ID: 21913996

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 11:59PM PDT, ID: 21914049

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 09:08AM PDT, ID: 21917885

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 09:16AM PDT, ID: 21917968

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 10:06AM PDT, ID: 21918492

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 11:36AM PDT, ID: 21919296

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 02:46PM PDT, ID: 21921019

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 03:32PM PDT, ID: 21921441

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 11:54PM PDT, ID: 21923238

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 12:08PM PDT, ID: 21934447

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C++.Net, C++ Programming Language, Microsoft Visual C++
Tags: c++, IE6, First-chance exception in Testcrash.exe (MSHTML.DLL): 0xC0000005: Access Violation.
Sign Up Now!
Solution Provided By: LordOfPorts
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628