[PR #17783] Make fire_and_forget exception safe #31372

Closed
opened 2026-01-31 09:46:50 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/17783

State: closed
Merged: Yes


This PR clones winrt::fire_and_forget and replaces the uncaught
exception handler with one that logs instead of terminating.
My hope is that this removes one source of random crashes.

Validation Steps Performed

I added a THROW_HR to TermControl::UpdateControlSettings
before and after the suspension point and ensured the application
won't crash anymore.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/17783 **State:** closed **Merged:** Yes --- This PR clones `winrt::fire_and_forget` and replaces the uncaught exception handler with one that logs instead of terminating. My hope is that this removes one source of random crashes. ## Validation Steps Performed I added a `THROW_HR` to `TermControl::UpdateControlSettings` before and after the suspension point and ensured the application won't crash anymore.
claunia added the pull-request label 2026-01-31 09:46:50 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31372