You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a project that mixes managed C# code and unmanaged C++/WinRT.
The UI is a C# WinUI 3 Desktop application. I have some controls and components written in C++/WinRT.
When I analyse my app for memory leaks, I frequently find C# objects referenced with the [Handle RefCount] description :
I suspect the "Handle RefCount" is an unmanaged reference to my object.
Can you confirm, and explain a little bit what exactly it is and how to avoid this situation ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a project that mixes managed C# code and unmanaged C++/WinRT.
The UI is a C# WinUI 3 Desktop application. I have some controls and components written in C++/WinRT.
When I analyse my app for memory leaks, I frequently find C# objects referenced with the [Handle RefCount] description :

I suspect the "Handle RefCount" is an unmanaged reference to my object.
Can you confirm, and explain a little bit what exactly it is and how to avoid this situation ?
Beta Was this translation helpful? Give feedback.
All reactions