You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 2 WinUI3 applications in a 1 package project, both with protocol schemes such as "settings" and "main" (=set default project in the package). However, when I try to open the protocol using the Run window with "settings://", it crashes.
The error message:
Exception thrown: 'System.Runtime.InteropServices.COMException' in WinRT.Runtime.dll
WinRT information: The Application Object must initially be accessed from the multi-thread apartment.
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in WinRT.Runtime.dll
WinRT information: The Application Object must initially be accessed from the multi-thread apartment.
The application called an interface that was marshalled for a different thread.
The "main" window shows up. Then when you open the "Run" window (windows+ R) and type "settings://hello". It crashes instead of displaying the "settings" window as it should
Expected behavior
Open the "Settings" window
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.3.3: 1.3.230724000
Windows version
Windows Insider Build (xxxxx), Windows 11 (22H2): Build 22621
stefanvd
changed the title
Bug title
Open protocol crash the WinUI3 application
Aug 20, 2023
stefanvd
changed the title
Open protocol crash the WinUI3 application
Opening the "settings://" protocol causes the WinUI3 application to crash
Aug 20, 2023
Describe the bug
I have 2 WinUI3 applications in a 1 package project, both with protocol schemes such as "settings" and "main" (=set default project in the package). However, when I try to open the protocol using the Run window with "settings://", it crashes.
The error message:
Steps to reproduce the bug
Expected behavior
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.3.3: 1.3.230724000
Windows version
Windows Insider Build (xxxxx), Windows 11 (22H2): Build 22621
Additional context
See this discussion microsoft/WindowsAppSDK#3795 (reply in thread)
The text was updated successfully, but these errors were encountered: