I have an AvaloniaUI application. I have created a simple Window that I want to show to my users on AppDomain.CurrentDomain.UnhandledException
.
The issue is that showing the window needs to somehow stop the thread where the Exception
was thrown (similar to winforms MessageBox
). This could be achieved by using ShowDialog
IF there was a visible parent window. But I can’t ensure that. If I simply show the window, the application just goes down and the window disappears immediately.
What’s the common approach here? Do I create a separate CrashReporter
executable that I launch? I really only care about displaying information to the user in a somewhat nice way. Can I achieve similar behavior to MessageBox.Show
?