Hi,

I have the following code:

public void openBrowser()

{

object oObj = null;

m_IExplorer = new SHDocVw.InternetExplorer();

string str = "www.google.com";

object urlObj = (object)str;



//Launch a child window

object oChildWindowFlag = 0x1;

try

{

m_IExplorer.Navigate("https://www.google.com/accounts/ServiceLogin", ref oChildWindowFlag, ref oObj, ref oObj, ref oObj);

}

catch(Exception ex)

{

//Logging the ex.ToString() in the log file

}

}




This code works excellently most of the times. Some times, the code just exits at the call to the Navigate method. I have tried putting a try-catch block around, and it seems that the catch part of the code gets executed but does not log any exception details.



I am not sure why this behavior. Can some one indicate what might me the problem?

Thanks,

-Bhaskar