Pantelis .Net, , , , , UnhandledException .
I don’t think that restarting the application will solve your problem, it will hide your problem, but if you like to do this, there are many ways to do this:
- Try to start the process again.
- In an UnhandledException, launch the application.
- Error code when an exception occurs and if there is an application, the Event checks the error code, and if the error code is not 0, restart the application.
source
share