Skip to content

CsWinRT v1.2.0

Compare
Choose a tag to compare
@Scottj1s Scottj1s released this 02 Apr 21:16
0359ee3

Release Notes

This release addresses a major memory leak issue seen in WinUI and Project Reunion C# desktop applications (#782). For more details on bug-fixes in this release, refer to the Release 1.2.0 Milestone.

C#/WinRT package:
https://www.nuget.org/packages/Microsoft.Windows.CsWinRT/1.2.0

This release includes the following fixes:

  • Fix for memory leaks in various scenarios using WinUI objects and page navigation (#413): This fix will require a C#/WinRT package reference for the updated runtime until an updated .NET SDK comes out with that runtime, in addition to an upcoming WinUI update.

    Some of the main memory leak scenarios resolved include:

    1. Aggregated scenarios: subclassing WinUI objects, invoking an event handler, property or method
    2. Non-aggregated scenarios: page navigation, reference cycles
  • Fix for GC holes in string marshaling (#773): The updated runtime includes the fix for crashes resulting from the memory location of the string object being moved by the GC. The remaining part of the fix for this issue involving a memory leak will be addressed in a future Windows SDK projection update.
    Thank you @filipnavara for this community contribution!

Important Notes

  • WinRT.Runtime.dll AssemblyVersion has been incremented to v1.2.0.0. Because of this version change, building with the new runtime will require all dependent components to update their runtime version as well.

Changes:

This list of changes was auto generated.