G
Guest
I've got a managed application that (on my computer) is not handling managed
exceptions. I've got the following:
try
{
string buf = (null as object).ToString();
}
catch(Exception e)
{
MessageBox.Show(e.Message);
}
When I run the application and perform the UI event that runs the above
code, I get the Microsoft Error Reporting dialog that asks me if I want to
send the information to microsoft. The uncaught exception reporting by the
tool is 0x80000003.
I would expect the Unhandled Exception dialog box to appear letting me
choose to continue or exit. Also, if I put a try/catch around throw new
NullReferenceException(), it works just fine.
Any ideas?
Mike
exceptions. I've got the following:
try
{
string buf = (null as object).ToString();
}
catch(Exception e)
{
MessageBox.Show(e.Message);
}
When I run the application and perform the UI event that runs the above
code, I get the Microsoft Error Reporting dialog that asks me if I want to
send the information to microsoft. The uncaught exception reporting by the
tool is 0x80000003.
I would expect the Unhandled Exception dialog box to appear letting me
choose to continue or exit. Also, if I put a try/catch around throw new
NullReferenceException(), it works just fine.
Any ideas?
Mike