Skip to content

Proposal: Create a reusable implementation of RuntimeClassHelpers.h and tracker_ref.h #3720

@benstevens48

Description

@benstevens48

It would be useful for people authoring their own components in C++/WinRT and consuming them in C# to have access to an easily reusable implementation of RuntimeClassHelpers.h and tracker_ref.h so that memory leaks can be avoided. I guess people can just copy the code, but it might be nice to provide it as a NuGet package or something.

In particular, if it could be also implemented in WILWRL, then perhaps Win2D could use it instead of requiring consumers to call RemoveFromVisualTree.

Also, I had a brief look at the code to see if I could understand it (not really), and it seems that there is no documentation of IReferenceTrackerExtension or IReferenceTrakerObject - see https://docs.microsoft.com/en-us/windows/win32/api/windows.ui.xaml.hosting.referencetracker/nn-windows-ui-xaml-hosting-referencetracker-ireferencetracker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-NugetPackageIssue with the nuget package developer experience (e.g. build error, missing files)feature proposalNew feature proposalteam-ControlsIssue for the Controls team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions