Error on Application.Exit

0
0

Hi,

After update from 2.0.17 to 2.1.22 i have the error message, shoewd in atthached picture, when use the application.exit command.

Any suggestion?

thanks in advance.

Attachment
  • You must to post comments
0
0

Hi Angelo,

it´s fixed in Wisej dev build 2.1.37.

Best regards
Frank

  • You must to post comments
0
0

Ciao Angelo,

I can reproduce. It’s a regression and it’s caused by a fix in the application termination code. The ThreadAbortException should not make it to the app. You can workaround it like this:

in Main

Application.ThreadException += Application_ThreadException;


 private static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
 {
   if (e.Exception is ThreadAbortException)
   {
     // do nothing.
   }
   else
   {
    // display exception?
   }
}

Having a global exception handler in the app is a good thing in general since it lets your app manage any exception.

HTH

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.