Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,18 @@ public override void Post(SendOrPostCallback d, object state)
if (d == null)
throw new ArgumentNullException(nameof(d));

m_dispatcherQueue.TryEnqueue(() => d(state));
m_dispatcherQueue.TryEnqueue(() =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manodasanW should we consider just sharing the synchronization context from UWP XAML with WinUI 3 instead (just changing the IID of course)? That one already has this fix, plus it's also more efficient. Thoughts?

{
try
{
d(state);
}
catch (Exception ex)
{
ExceptionHelpers.ReportUnhandledError(ex);
throw;
}
});
}

public override void Send(SendOrPostCallback d, object state)
Expand Down