为什么 Visual Studio 2008 停止报告内存泄漏?

发布于 2024-10-21 14:35:56 字数 427 浏览 6 评论 0原文

我们办公室使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

怎言笑 2024-10-28 14:35:56

不,它还在那里。您需要遵循说明。想必您不知何故错过了这些步骤。也许您错误地运行了 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文