This question is locked. New answers and comments are not allowed.
Hi,
When my application is throwing an exception, the messagebox doesn't show. Instead I get this :
Invalid cross-thread access.
at MS.Internal.XcpImports.CheckThread()
at System.Windows.Application.remove_UnhandledException(EventHandler`1 value)
at Telerik.Windows.Controls.RadDiagnostics.f(Object A_0, ApplicationUnhandledExceptionEventArgs A_1)
at MS.Internal.Error.CallApplicationUEHandler(Exception e)
at MS.Internal.JoltHelper.OnUnhandledException(Object sender, UnhandledExceptionEventArgs args)
Notice the Windows.controls.RadDiagnostics entry in the stacktrace.
I do run several methods in my Service Classes async and in a new thread.
If I need to update the GUI i use this block of code to avoid the cross-thread exception :
PS : I have no custom implementation for the messagebox.
When my application is throwing an exception, the messagebox doesn't show. Instead I get this :
Invalid cross-thread access.
at MS.Internal.XcpImports.CheckThread()
at System.Windows.Application.remove_UnhandledException(EventHandler`1 value)
at Telerik.Windows.Controls.RadDiagnostics.f(Object A_0, ApplicationUnhandledExceptionEventArgs A_1)
at MS.Internal.Error.CallApplicationUEHandler(Exception e)
at MS.Internal.JoltHelper.OnUnhandledException(Object sender, UnhandledExceptionEventArgs args)
Notice the Windows.controls.RadDiagnostics entry in the stacktrace.
I do run several methods in my Service Classes async and in a new thread.
If I need to update the GUI i use this block of code to avoid the cross-thread exception :
Deployment.Current.Dispatcher.BeginInvoke(() =>
{
//Do GUI stuff here
});
PS : I have no custom implementation for the messagebox.