C
C#3mo ago
Unk

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
Jimmacle
Jimmacle3mo ago
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
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
Mayor McCheese
Mayor McCheese3mo ago
What are you doing where you think there's a leak?
Unk
UnkOP3mo ago
thank you
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
Unk
UnkOP3mo ago
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
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX3mo ago
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.

Did you find this page helpful?