4

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?

  • 3
    Based 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 Hemmelgarn Dec 11 '18 at 19:20
  • 1
    I think you have formulated the question more accurately. Thanks for the amendment. Apparently, I need to look for an analogue Valgrind for Windows – Bobby Simon Dec 12 '18 at 10:09
3

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)

  • 2
    Can you briefly tell how these programs work? Do they show what processes cause leaks? Or show an object that is not deleted? – Bobby Simon Dec 17 '18 at 20:12
  • 1
    It seems that VLD is dead :( According to their github... – MastAvalons Dec 19 '18 at 20:13
  • 1
    Obviously there are no updates for a long time. This happens sometimes. But as I understand the debugger works fine – Bobby Simon Dec 20 '18 at 19:51
4

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.

3

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? – Bobby Simon Dec 28 '18 at 14:17
  • 1
    Yes, a big plus is working with threads. But the application has its drawbacks. It is rather slow for me. There are false positives sometimes. – redeye Jan 23 at 16:21
3

You can try GDIView. And i found this program, probably is it better. Apimonitor

  • 1
    Could you explain a bit about the features of each suggestion and how they comply with the question? – Alejandro Dec 26 '18 at 14:28
  • I heard good reviews about GDIView. Is this program still supported? – z0r1fan Feb 4 at 15:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.