Hi There,
I have been using Visual Studio 6.0 on Windows XP (with Service Pack 2). I have hosted the Web Browser control inside my MFC application. Following is what when I do, I see a crash:

1/From the main application I start a thread .
2/This thread makes a call to .Navigate method of Web browser.
3/On this call I see an exception which I can catch in the catch(...) block.

Can anybody please help me here to find how can I avoid this exception?

UINT IstPageThreadProc(void * pParam)
{
  //code
  try
  {
      VARIANT  Flags, Empty;
      pView->m_WebBrowser.Navigate(m_csStartAddress, &Flags, &Empty, &Empty, &Empty);
  }
  catch(...)
  {
     AfxMessageBox("Exception 1:");
  }
}

Your quick help will be highly appreciated.
Best Regards,
Sohail Aslam