-
Notifications
You must be signed in to change notification settings - Fork 771
Closed as not planned
Closed as not planned
Copy link
Labels
Crashwhenever user reports a crash or app freezewhenever user reports a crash or app freezeMAUI-request 🏝️Bugs that have been requested to be fixed by the .NET MAUI team.Bugs that have been requested to be fixed by the .NET MAUI team.area-XamlWindowbugSomething isn't workingSomething isn't workingno-issue-activityproduct-winui3WinUI 3 issuesWinUI 3 issues
Description
Describe the bug
I noticed that my app was crashing when trying to read the resources from a background thread:
var res = Application.Current?.ResourcesI don't actually want to start using things, but rather I wanted to get the dispatcher queue and then enqueue a delegate to update the dictionary. But, it appears just reading this crashes the app and also adding Application.Current in the IDE's debug intermediate window also throws.
Steps to reproduce the bug
On a background thread:
var res = Application.Current?.ResourcesExpected behavior
No crash and the resource dictionary is readable.
Screenshots
No response
NuGet package version
1.0.0
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 21H2 (22000)
IDE
Visual Studio 2022-preview
Additional context
No response
Metadata
Metadata
Assignees
Labels
Crashwhenever user reports a crash or app freezewhenever user reports a crash or app freezeMAUI-request 🏝️Bugs that have been requested to be fixed by the .NET MAUI team.Bugs that have been requested to be fixed by the .NET MAUI team.area-XamlWindowbugSomething isn't workingSomething isn't workingno-issue-activityproduct-winui3WinUI 3 issuesWinUI 3 issues