为什么 Visual Studio 2008 停止报告内存泄漏?
我们办公室使用Visual Studio 2008进行开发。它具有内置的内存泄漏检测功能,并且似乎始终工作正常。最近,我检查了一些使用“new”进行大量分配的代码,令我惊讶的是我没有报告任何内存泄漏。
当我的同事运行代码时,他的 Visual Studio 版本发现了很多这样的代码。我不知道发生了什么事。不知何故,我的 VS 副本中的泄漏检测或报告已被关闭。我们使用 SourceSafe 来管理代码库,因此我们使用相同的代码。
我没有运气寻找解决方案。我能找到的就是这样的文章。我知道有第三方泄漏检测解决方案,但我真的很想了解如何在 Visual Studio 中禁用它。如果有人知道,请分享。
Our office uses Visual Studio 2008 for development. It has built-in memory leak detection and has always seemed to work properly. Very recently, I checked some code in that had a fair bit of allocation using "new", and I was surprised that I didn't have any memory leaks reported.
When my coworker ran the code, his version of Visual Studio found lots of them. I don't know what happened. Somehow, either the leak detection or the reporting of it has gotten turned off in my copy of VS. We use SourceSafe to manage the code base, so we're using identical code.
I've had no luck searching for a solution. All I can find is stuff like this article. I know there are third party leak detection solutions, but I'd really like to understand how this got disabled in Visual Studio. If anyone knows, please share.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,它还在那里。您需要遵循说明。想必您不知何故错过了这些步骤。也许您错误地运行了 RELEASE 构建。从这里很难判断。
No, it's still there. You need to follow the instructions. Presumably you missed on of these steps somehow. Perhaps you were running a RELEASE build by mistake. Kind of hard to tell from here.