Qt 有免费的内存泄漏检测器吗?
我正在寻找 Qt
的免费内存泄漏检测器。我使用 Qt Creator 1.3
和 Qt 版本 4.6(32 位)
。该平台是Windows 7 Ultimate
。
谢谢。
I'm looking for free memory leak detector for Qt
. I use Qt Creator 1.3
with Qt version 4.6 (32 bit)
. The platform is Windows 7 Ultimate
.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
虽然这个问题不是特定于Qt的,但答案确实请参阅 Windows 上可用的各种通用内存泄漏检测工具。接受的答案中提到的两个是商业工具,但其他答案中提到了一些免费的替代品。
Although this question is not Qt-specific, the answers do refer to various general-purpose memory leak detection tools which are available on Windows. The two which are mentioned in the accepted answer are commercial tools, but there are some free alternatives referred to in other answers.
我对 Qt 不太确定,但我使用 Valgrind 进行内存泄漏跟踪。
编辑:Valgrind 不能在 Windows 上运行,所以这实际上并不能回答问题。
I'm not sure about Qt in particular, but I use Valgrind for memory-leak tracking.
EDIT: Valgrind doesn't work on Windows, so this doesn't actually answer the question.
我在一个主要的图形 Qt 产品上使用了 Valgrind。与任何软件工具一样,需要付出很大的努力才能学习如何使用它并有效地配置它。我在使用它方面仍然是一个新手,但我发现它对于发现内存问题非常有用且有益。它可以在非常明显的程度上减慢被调试程序的速度。但我仍然推荐它。
对于商业 C++ 框架来说,Qt 中缺乏内存调试机制是一个令人惊讶的遗漏。
I have used Valgrind on a major graphical Qt product. Like any software tool it takes serious effort to learn how to use it and configure it efficiently. I am still a newbie at using it really but I find it very useful and beneficial to find memory issues. It can slow the debugged program to a very noticeable extent. I still recommend it though.
The lack of a memory debugging mechanism in Qt is a somewhat surprising omission for a commercial C++ framework.