Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
190
UltraToolbarManager doesn't hook ThreadException to UnhandledException
posted

Hi, 

I'm using NetAdvantage for Winform 12.1 for .NET 4, and now I'm working with UltraToolbarManager.

Our team designed our application to handle all handled exception at AppDomain.UnhandledException Handler, to deal with error log at one location.

So use Application.SetUnhandledExceptionMode and handle all exceptions like following code;

AppDomain.CurrentDomain.UnhandledException += (sender, args) =>
    {
        var ex = args.ExceptionObject as Exception;
 
        MessageBox.Show("Nice Catch in Unhandled Exception!\n" + ex.Message);
                    
    };
 
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.ThrowException);

Everything goes fine, except UltraToolbarManager...

When click menus, it's OK. Unhandled Exception occurs.However, if I click toolbar button, ThreadException occurs and ,that's all. No UnhandledException fired.

Is it design ? Are there any ways to change this behavior ?

Parents Reply Children
No Data