tools to detect memory leaks?

patrick

Well-known member
Joined
Dec 5, 2021
Messages
305
Programming Experience
1-3
Are there any tools to detect memory leaks in C# ? ( Free Download SW)

In C# (VS2019) , There is memory leaks in my C# Source.

I need a tool to detect memory leaks in C# Source. ( Free Download )

It should be detected which function, method, or variable in the C# Source is leaking memory.


please answer me.
 
Last edited by a moderator:
C# technically does not leak memory because the garbage collector frees any memory that is not accessible anymore at the time the garbage collector runs.

You can leak unmanaged resources though if you are not careful. Normally just consistently disposing disposable objects fixes this.

As far as I know, there is no publicly available 'valgrind for C#', but then I also have not actively been looking.
 
It's amazing what you can find when you type into Google: "detecting .NET Framework memory leaks".
 

Latest posts

Back
Top Bottom