J
jay.meerdink
I have a simple app that opens in Program.cs with
try
{
Application.Run(new Shell());
}
catch (Exception ex)
{
LogErr(ex)
}
In the development environment, any exception thrown anywhere in any
form fires the catch in Program.cs. Create a button in Shell that
opens a new form Test. Test has one button that throws a new
exception. When running in the design environment, the exception
rises to the catch in Program.cs. If I run the executable, the throw
results in an unhandled exception error box.
Why would this behavior be different from one environment to the
other? How do I get the executable to react to errors in the same
manner as the development environment?
Thank you!
J
try
{
Application.Run(new Shell());
}
catch (Exception ex)
{
LogErr(ex)
}
In the development environment, any exception thrown anywhere in any
form fires the catch in Program.cs. Create a button in Shell that
opens a new form Test. Test has one button that throws a new
exception. When running in the design environment, the exception
rises to the catch in Program.cs. If I run the executable, the throw
results in an unhandled exception error box.
Why would this behavior be different from one environment to the
other? How do I get the executable to react to errors in the same
manner as the development environment?
Thank you!
J