简体   繁体   English

适用于Windows的C ++动态代码分析工具

[英]C++ Dynamic Code Analysis tools for Windows

i was searching for a tool that detect (Memory Leaks,Memory Corruption, ...) at run-time in VS for C++ 我正在寻找一个在VS for C ++运行时检测(内存泄漏,内存损坏......)的工具

and i found this : Dynamic code analysis for C++ 我发现了这一点: C ++的动态代码分析

unfortunately most of them running under linux so i ask for tools running to VS or at least for Windows 不幸的是,他们中的大多数都是在linux下运行所以我要求工具运行到VS或至少运行Windows

Thanks in Advance 提前致谢

The best tool I know for the windows platform is DrMemory . 我知道的Windows平台最好的工具是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. 它工作得很快,即使它目前仅针对32位应用程序,它对我的​​关键/遗留MFC C ++代码也有很大帮助。

Let me know your favorite parameters! 让我知道你最喜欢的参数! I recommend you to start with the simple "-top_stats -light". 我建议你从简单的“-top_stats -light”开始。

I recommend that you check out Runtime Checker . 我建议您查看运行时检查程序 It is designed to help detect memory leaks in Windows C++ applications. 它旨在帮助检测Windows C ++应用程序中的内存泄漏。

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). 我找到的是DevPartner Bounds Checker (该链接适用于DevPartner Studio。但是,可以仅购买边界检查器组件)。 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++ . 另一个是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. 价格倾向于与推销员协商。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM