Skip to content

Bug: DispatcherQueueSynchronizationContext changes break UnhandledException event in winui apps #1983

Open
@lhak

Description

@lhak

Description

The UnhandledException event handler broken since appsdk 1.7 was released (see microsoft/microsoft-ui-xaml#10447 (comment)) and the issue is caused by a change in the DispatcherQueueSynchronizationContext class. I see that this file also exists in this repo (see here) and has the same bug.

Steps To Reproduce

  1. Register for UnhandledException handler in a winui app
  2. Throw an exception in the application
  3. App crashes without the event being invoked

Expected Behavior

UnhandledException handler should be invoked

Version Info

cswinrt 2.2
appsdk 1.7

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions