K
K
Kirill Zhilyaev2018-04-30 00:03:36
C++ / C#
Kirill Zhilyaev, 2018-04-30 00:03:36

How to detect a memory leak?

Is there a way to find what is eating my memory and in what quantities? Preferably something that can be delivered without a debugger.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
Codebaker, 2018-04-30
@Codebaker

Colleague, you will forgive me, but I would like to answer that the evil Alzheimer is devouring your memory. You can vaccinate, but this is unlikely to help, but without a debugger.
But seriously, where are the technical details? At least name the platform!
If everything is top secret, then read about valgrind for nix systems or Application Verifier for Windows.
You should also pay attention to the libraries and modules that you use in your project.
You can also advise writing your own code using smart pointers or without them at all, this often helps.
Good luck and clean code!

A
Andrey Kaprov, 2018-04-30
@Andrey2008

Dynamic analyzers will help you . Plus, you can try PVS-Studio: Yes, PVS-Studio can detect memory leaks .

D
devalone, 2018-04-30
@devalone

valgrind

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question