Commit 5025718
Extend issue #422 TrayToolTip suppression to AppDomain handler
The fix in 562269f added IsTrayToolTipCrash() to OnDispatcherUnhandledException
in both apps, but the same race in Hardcodet.NotifyIcon.Wpf can also escape to
OnUnhandledException (AppDomain) — observed today when exiting via the tray
context menu. The Dispatcher's exception hooks tear down before the tray
library finishes processing late tooltip-hide messages, so the exception
arrives at AppDomain with no suppression and the user sees a Fatal Error
dialog despite the underlying crash being harmless.
Mirror the same IsTrayToolTipCrash() check in OnUnhandledException for both
Lite and Dashboard. Logs a Warn and returns without showing the dialog.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b146158 commit 5025718
2 files changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
92 | 102 | | |
93 | 103 | | |
94 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
458 | 469 | | |
459 | 470 | | |
460 | 471 | | |
| |||
0 commit comments