stack around the variable “” was corrupted的处理方法

自己碰到这种问题想了半天也没想明白,百度了一下,解决方法还是很简单的。

错误:stack around the variable “XX” was corrupted,栈附近的空间被损坏。一般都是栈溢出。可能是由于VS限制了栈的大小,自己所要入栈的数据太多导致的栈溢出。具体的解决方法也很简单。把“project->配置属性->c/c++->代码生成->基本运行时检查 设置为默认值,就没有这样的错误了。还有另外一个方法就是把你要入栈的数据量改小一点。

 

参考:关于stack around the variable “” was corrupted问题

http://www.cnblogs.com/flysnail/archive/2011/09/21/2184114.html

posted @ 2017-05-14 21:21  ll7  阅读(7653)  评论(0编辑  收藏  举报