3

i was searching for a tool that detect (Memory Leaks,Memory Corruption, ...) at run-time in VS for C++

and i found this : Dynamic code analysis for C++

unfortunately most of them running under linux so i ask for tools running to VS or at least for Windows

Thanks in Advance

Community
  • 1
  • 1
HokaHelal
  • 1,568
  • 2
  • 15
  • 21
  • [`MSYS`](http://www.mingw.org/wiki/MSYS) or [`cygwin`](http://www.cygwin.com/) allow you to use linux tools natively on windows. – Peter Wood Mar 13 '13 at 08:33
  • i know Cygwin ,but i wonder isn't there any tool run in windows.. did microsoft forget to invent something like that !! – HokaHelal Mar 13 '13 at 08:37
  • 1
    The linked question includes [`duma`](http://duma.sourceforge.net/) which runs on windows. re: Microsoft: they do it for money. Open source does it for love (and to scratch itches). – Peter Wood Mar 13 '13 at 08:42
  • UMDH is not bad.[http://msdn.microsoft.com/en-us/library/ff560206(VS.85).aspx)] . it heped me; – jalal sadeghi Mar 13 '13 at 09:07
  • Current link for UMDH: http://msdn.microsoft.com/en-us/library/windows/hardware/ff558947%28v=vs.85%29.aspx – AHelps Jan 07 '15 at 21:19

3 Answers3

1

The best tool I know for the windows platform is DrMemory.

It works fast and it helped me a lot in my critical/legacy MFC C++ code even if it currently targets 32-bit applications only.

Let me know your favorite parameters! I recommend you to start with the simple "-top_stats -light".

alcor
  • 638
  • 1
  • 13
  • 27
0

I recommend that you check out Runtime Checker. It is designed to help detect memory leaks in Windows C++ applications.

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
0

I've been looking for answers to this problem as well.

One that I found is DevPartner Bounds Checker (The link is for DevPartner Studio. It is possible to buy just the bounds checker component, however). I was able to get some good results from it, but I also had problems with its instrumenting tool crashing on my particular codebase. Their tech support was pretty bad. YMMV.

Another is Parasoft Insure++. This tool has been around a long time, and the demos looked good. I haven't had much time to use it yet, but it seems hopeful.

Both of these are commercial products with sales teams and technical support. Prices tend to be negotiated with a salesman.

AHelps
  • 1,782
  • 11
  • 17