Skip to content

Commit

Permalink
Try to report native exceptions again
Browse files Browse the repository at this point in the history
  • Loading branch information
FrayxRulez committed Dec 4, 2024
1 parent 3123c33 commit df68a82
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Telegram/Common/WatchDog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,14 @@ private static void OnUnhandledException(object sender, Windows.UI.Xaml.Unhandle
return;
}

var error = NativeUtils.GetFatalError(false);
var exception = ToException2(error);

if (exception != null)
{
Crashes.TrackError(exception);
}

if (SettingsService.Current.Diagnostics.ShowMemoryUsage && Window.Current != null)
{
_ = MessagePopup.ShowAsync(Window.Current.Content.XamlRoot, args.Exception.ToString(), "Unhandled exception", "OK");
Expand Down

0 comments on commit df68a82

Please sign in to comment.