System.AccessViolationException: 1.4.x broke creation of 2 Microsoft.Ui.Xaml.Window within Application's OnLaunched #9310
Labels
area-Windowing
closed-Duplicate
Described behavior is already captured by another issue.
team-Markup
Issue for the Markup team
Describe the bug
Up till the last 1.3 version it was ok, to create 2 instances of a Microsoft.Ui.Xaml.Window within your Application's OnLaunched method (or later down the call stack).
However, SDK 1.4.0 broke this, and you'll inevitably encounter a System.AccessViolationException!
Steps to reproduce the bug
Exception thrown at 0x00007FFD2D05DE84 (Microsoft.UI.Windowing.Core.dll) in [...].exe: 0xC0000005: Access violation reading location 0x0000000000000030.
Expected behavior
Just like prior to version 1.4.0, no System.AccessViolationException shall be thrown.
Screenshots
NuGet package version
Windows App SDK 1.4.4: 1.4.231219000
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 21H2 (22000)
IDE
Visual Studio 2022
Additional context
All 1.4. SDK versions are affected.
The text was updated successfully, but these errors were encountered: