© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•5mo ago•
6 replies
noble

How to resolve this unmanaged memory leak?

I've written a small mpv renderer for avalonia using opengl:



So far everything seems to work except when i'm done and call dispose almost no memory involved with the renderer is released even though i destroy the native pointers in a safe way. I'm not sure what i am missing. Any help would be appreciated. For more context, the whole repo is here and readily reproducible: https:///www.github.com/saverinonrails/avaloniampv
message.txt12.53KB
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ High Unmanaged Memory
C#CC# / help
4y ago
✅ Why memory from heap0 goes to unmanaged?
C#CC# / help
11mo ago
Memory leak : WeakReferences
C#CC# / help
17mo ago
Debugging memory leak
C#CC# / help
17mo ago