Skip to content

Log unhandled exceptions to Rapr.log - #482

Merged
lostindark merged 1 commit into
lostindark:masterfrom
indep-arg:pr/log-crashes
Oct 27, 2026
Merged

lostindark merged 1 commit into
lostindark:masterfrom
indep-arg:pr/log-crashes

Conversation

@indep-arg

Copy link
Copy Markdown
Contributor

When the app crashed at startup in #479, Rapr.log only said "Rapr started", so the cause had to come from the Windows event log. This writes any unhandled exception to the trace log before the process ends.

  • Exceptions on the UI thread still show the usual WinForms error dialog. They're just logged first.
  • Exceptions outside the message loop, like the Crash at startup #479 one (thrown while the form is created), are logged and then the app ends as before.

No new strings.

When the app crashed at startup (lostindark#479) the log only said "Rapr started",
so the cause had to be dug out of the Windows event log. Write any
unhandled exception to the trace log before the process goes down.

UI-thread exceptions still show the standard WinForms error dialog; they
are just logged first.
@lostindark
lostindark merged commit 326ccb3 into lostindark:master Oct 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants