L
Lloyd Dupont
I have a multiform application.
my top level run code looks like that.
Form appForm1, appForm2, appForm3, ...
.....
while(true)
try
{
Application.Run(appForm1);
return;
}
catch(Exception ex)
{
Hide(currentForm)
Show(appForm1);
MessageBox(ex.Message);
}
so, as you see, in case of exception, I display the 1st, welcome form (hide
the other) and display an error message.
now what happened, I have a MenuItem which call a method (which should
display an other form) which throw an exception.
and then I get caught in an infinite loop where Application.Run()
continuously throw ArgumentException and there is no user code involved, nor
exception message or inner exception ...
any tips ?
my top level run code looks like that.
Form appForm1, appForm2, appForm3, ...
.....
while(true)
try
{
Application.Run(appForm1);
return;
}
catch(Exception ex)
{
Hide(currentForm)
Show(appForm1);
MessageBox(ex.Message);
}
so, as you see, in case of exception, I display the 1st, welcome form (hide
the other) and display an error message.
now what happened, I have a MenuItem which call a method (which should
display an other form) which throw an exception.
and then I get caught in an infinite loop where Application.Run()
continuously throw ArgumentException and there is no user code involved, nor
exception message or inner exception ...
any tips ?