J
Jacek Jurkowski
In a FMain of below application I'm throwing an Exception.
It's catched by a catch section and application restarts.
But in a reastarted application try section doesn't work no longer.
Error throwed by FMain is no longer catched and causes a
last chance CLR erception handler. Why?
[STAThread]
public static void Main(string[] pStartupParameters)
{
try
{
FMain main = new FMain();
Application.Run(main);
}
catch (Exception e)
{
MessageBox.Show(e.Message);
Application.Restart();
}
}
It's catched by a catch section and application restarts.
But in a reastarted application try section doesn't work no longer.
Error throwed by FMain is no longer catched and causes a
last chance CLR erception handler. Why?
[STAThread]
public static void Main(string[] pStartupParameters)
{
try
{
FMain main = new FMain();
Application.Run(main);
}
catch (Exception e)
{
MessageBox.Show(e.Message);
Application.Restart();
}
}