This is a minimal C++/WinRT application that has hello world win32 app and modal app using desktopChildSitebridge.
- Build and run
ModalTest.cpp - Click "Show Modal" button
- Click the "X" button on the modal to close it
- Click anywhere on the parent window
- Application crashes with FailFast in
contentappwindowbridge.cpp(835)
- Parent Window: Win32 HWND with
DesktopChildSiteBridgeconnected toContentIsland - Modal Window:
DesktopPopupSiteBridgewith parent island as parent - Cleanup Sequence: Hide → Close popup → Close island → nullptr
ModalTest.cpp- Main test application demonstrating the bugDesktopAppWin32.vcxproj- Visual Studio project file
- Visual Studio 2022 or later
- Windows App SDK 1.7 or later
- C++/WinRT support
- Windows 10 SDK (10.0.19041.0 or later)
Modal closes cleanly, parent window remains fully functional.
Modal closes successfully, but clicking parent window crashes with:
contentappwindowbridge.cpp(835)\Microsoft.UI.Input.dll!00007FF8BC10BFD5:
FailFast(1) tid(9e90) 8000FFFF Catastrophic failure