Auto restart application after unhandled exception in c# CF

  • Thread starter Thread starter Lieven Boving via .NET 247
  • Start date Start date
L

Lieven Boving via .NET 247

(Type your message here)

--------------------------------
From: Lieven Boving
I develop a application within c# on the compact framework (not version 2.0!).

How can I restart my application in C# after unhandled exception.

I can not uses the process class because this is not supported in the CF.
Anny help is usefull.

void main
{
try
{
while (!ended)
{
Application.Start(new frmSplash());
ended=true;
}
}
catch (exception e)
{
//Log....
// resart application
??????????????????????????????????????????
}
}
 
Lieven Boving via. said:
I develop a application within c# on the compact framework (not version 2.0!).
How can I restart my application in C# after unhandled exception.
void main
{
try
{
while (!ended)
{
Application.Start(new frmSplash());
ended=true;
}
}
catch (exception e)
{
//Log....
// resart application
??????????????????????????????????????????
}
}

Why not

catch()
{
main();
}

?
 
Back
Top