调试版本在发布版本中导致内存转储 [英] Debug version results memory dump in release version

查看:124
本文介绍了调试版本在发布版本中导致内存转储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在windows的VC ++环境中设计了应用程序,它在编辑器visual studio中进行调试时工作正常。但是一旦我在Release版本中构建应用程序,它就会抛出内存转储异常,最后出现蓝屏死机。

这种情况​​有什么可能?



我尝试过的事情:



我以静态格式分配所有动态内存,删除未使用的变量和函数

I designed application in VC++ environment of windows,it working fine while I debug it in editor visual studio.But once I build application in Release version it throws memory dump exception and blue screen of death appears finally.
What are the possibility of this type of scenario?

What I have tried:

I allocate all dynamic memories in static format, remove unused variables and functions

推荐答案

许多可能的原因不限于这些:

c ++ - 调试模式中不存在发布版本中的错误的常见原因 - 堆栈溢出 [ ^ ]

可以是deb ugged使用这些方法:

c ++ - 程序只会崩溃作为发布版本 - 如何调试? - 堆栈溢出 [ ^ ]



这里有更多提示:

调试发布模式问题 [ ^ ]



一如既往地使用GOOGLE进行进一步的研究。
Many possible reasons not limited to these:
c++ - Common reasons for bugs in release version not present in debug mode - Stack Overflow[^]
Can be debugged using these methods:
c++ - Program only crashes as release build -- how to debug? - Stack Overflow[^]

More tips here:
Debugging Release Mode Problems[^]

As always do further research using GOOGLE.


这篇关于调试版本在发布版本中导致内存转储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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