Garbage collector
Hello, please tell me, who knows about the "garbage collector" in C#, how to search for garbage leaks in a C# program, are there any tools for viewing references to an object in the heap, because of which the "garbage collector" does not reach and does not remove them.
9 Replies
to nitpick, memory leaks would actually be caused by objects the garbage collector can reach
but you can use a memory profiler to do what you're looking for, like dotMemory or tools built into VS/Rider
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
What are you doing where you think there's a leak?
thank you
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
I do this for self-development, and to help a friend, he said that I need to learn this topic, "memory profiler toolkit" "how to look for leaks" and how to fix them
Do you have example with this work?
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Mayor McCheese
What are you doing where you think there's a leak?
Quoted by
<@689473681302224947> from #Garbage collector (click here)
React with ❌ to remove this embed.
https://www.tessferrandez.com/blog/2021/03/18/debugging-a-netcore-memory-issue-with-dotnet-dump.html
If broken it is, fix it you should
Debugging .NET Core memory issues (on Linux) with dotnet dump
Hi all,