-
Notifications
You must be signed in to change notification settings - Fork 785
Description
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.