Are there any available programs to manage memory usage, GDI objects? I would like to receive data about the allocation and usage of memory objects in the code. Now I am involved in a project in C ++, Visual Studio, Windows. I faced the problem of leakage. And I can not always find where they appear. I searched myself and found very expensive programs. Is there something free or inexpensive?
-
3Based on what you've got in your question, what you're looking for is a memory debugger, not a memory usage manager. The classic FOSS example of such a tool is valgrind, but that unfortunately is essentially UNIX-only.– Austin HemmelgarnDec 11, 2018 at 19:20
-
1I think you have formulated the question more accurately. Thanks for the amendment. Apparently, I need to look for an analogue Valgrind for Windows– Bobby SimonDec 12, 2018 at 10:09
4 Answers
VLD is a good debugger. Easy to use, convenient. You can find a lot of tutorials and videos on YouTube about it. But it doesn't catch GDI-leaks. Deleaker can detect them. This is a paid tool that integrates into the Visual Studio development environment. Also it catch handles. Wikipedia has a list of debuggers for all cases)
-
2Can you briefly tell how these programs work? Do they show what processes cause leaks? Or show an object that is not deleted? Dec 17, 2018 at 20:12
-
1
-
1Obviously there are no updates for a long time. This happens sometimes. But as I understand the debugger works fine Dec 20, 2018 at 19:51
Perhaps you have already checked this old topic. I want to note that not all debuggers are listed here. There is a good plugin for Visual Studio called PVS studio which just gives more in depth warnings. I like the standard debugger. Also good leak detection programs are Insure and Deleaker.
Intel Inspector is a good debugger. It works not only with memory. But very expensive in my opinion. More details you can find on the official website.
-
Thank. I hope to find something less expensive. But I understand your choice, this should be a good debugger? Dec 28, 2018 at 14:17
-
1Yes, a big plus is working with threads. But the application has its drawbacks. It is rather slow for me. There are false positives sometimes.– redeyeJan 23, 2019 at 16:21
You can try GDIView. And i found this program, probably is it better. Apimonitor
-
1Could you explain a bit about the features of each suggestion and how they comply with the question? Dec 26, 2018 at 14:28
-