调试模式下内存泄漏 [英] Memory leaks in Debug mode

查看:95
本文介绍了调试模式下内存泄漏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

程序在调试模式下编译而不是在释放时有泄漏的原因吗?

Is there any reason for a program to leak when compiled in Debug mode and not in release?

(调试表示调试信息,禁用编译器优化,没有调试信息/完全优化)

(Debug means debug informations, and compiler optimization disabled, Release means no debug info / full optimization)

这是它似乎做了,但我不能弄清楚为什么。 Btw Purify在此不起作用

That's what it seems to do but I can't figure out why. Btw purify is not being helpful here

推荐答案

很多指针类型错误,包括内存泄漏, em>在调试和释放模式之间切换时出现或消失。原因可能有两个:

A lot of pointer type errors, including memory leaks, can seem to appear or disappear when switching between debug and release mode. A couple of reasons might be:


  • 在一个版本或其他版本中编译的条件代码

  • 内存

这篇关于调试模式下内存泄漏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆