[~75% IMPACT] Crash on natural app exit because of composition class issue (XamlApplication) #1775

Closed
opened 2026-01-30 22:36:08 +00:00 by claunia · 3 comments
Owner

Originally created by @DHowett-MSFT on GitHub (Jun 20, 2019).

The "correct" fix for this is to make our XamlApplication AddRef its outer. C++/WinRT generates bad code here. Long term, we need to fix our XamlApplication stack.

Bug 22116519: C++/WinRT composable+composing types don't delegate calls during construction

Originally created by @DHowett-MSFT on GitHub (Jun 20, 2019). The "correct" fix for this is to make our `XamlApplication` `AddRef` its `outer`. C++/WinRT generates bad code here. Long term, we need to fix our XamlApplication stack. _Bug 22116519: C++/WinRT composable+composing types don't delegate calls during construction_
Author
Owner

@mdtauk commented on GitHub (Jun 20, 2019):

Is this one of many problems which goes away when WinUI Desktop comes into existence. Mixing of XAML and Win32 lifecycle.

@mdtauk commented on GitHub (Jun 20, 2019): Is this one of many problems which goes away when WinUI Desktop comes into existence. Mixing of XAML and Win32 lifecycle.
Author
Owner

@DHowett-MSFT commented on GitHub (Jun 20, 2019):

Completely honest: XAML islands is WinUI desktop for right now, and this is an issue they have had to tackle in their bringup as well. Yes, it will go away, but for a while we're trailblazing and feeding our learnings back to them. You're not wrong, though.

@DHowett-MSFT commented on GitHub (Jun 20, 2019): Completely honest: _XAML islands is WinUI desktop for right now, and this is an issue they have had to tackle in their bringup as well_. Yes, it will go away, but for a while we're trailblazing and feeding our learnings back to them. You're not wrong, though.
Author
Owner

@mdtauk commented on GitHub (Jun 20, 2019):

Completely honest: XAML islands is WinUI desktop for right now, and this is an issue they have had to tackle in their bringup as well. Yes, it will go away, but for a while we're trailblazing and feeding our learnings back to them. You're not wrong, though.

It makes sense to continue with the structure as it is now, but every problem you come across, should be "fixed" as WinUI Desktop comes to the fore.

ExtendTitleBar, and naming an element to stand in for the TitleBar dragging - should be in WinUI with Win32 :D

@mdtauk commented on GitHub (Jun 20, 2019): > Completely honest: _XAML islands is WinUI desktop for right now, and this is an issue they have had to tackle in their bringup as well_. Yes, it will go away, but for a while we're trailblazing and feeding our learnings back to them. You're not wrong, though. It makes sense to continue with the structure as it is now, but every problem you come across, should be "fixed" as WinUI Desktop comes to the fore. ExtendTitleBar, and naming an element to stand in for the TitleBar dragging - should be in WinUI with Win32 :D
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1775