开发者

Why did Visual Studio 2008 stop reporting memory leaks?

开发者 https://www.devze.com 2023-02-17 01:40 出处:网络
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 allocatio

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开发者_如何学Python 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号