VS2008 运行错误 stack around variable was corrupted
来源:互联网 发布:韦德去骑士数据 编辑:程序博客网 时间:2024/05/19 13:56
在读.CSV文件时,在函数返回时,总弹出个错误:
我仔细阅读了一下代码,各处都没有内存溢出,BUG之类的,读取结果也都正确,在网上搜索了一下,原因和修改方法如下:
1. 原因:这样的错误是程序员在项目到了一定大的时候,它占用的堆栈量就比较大。我也深有体会。因为自己本来编写一个类,运行时没有错,但是在添加成员属性的时候,在其它方式不变的情况下就容易发生这样的错误。所以据此我猜应该是VS2005(2008)在内部就限定了堆栈的大小,当项目足够大的时候,就会溢出。
2. 解决办法:
把“project->配置属性->c/c++->代码生成->基本运行时检查 设置为默认值,就没有这样的错误了
0 0
- VS2008 运行错误 stack around variable was corrupted
- 错误:stack around the variable * was corrupted
- stack around variable was corrupted
- VS2008中Run-Time Check Failure #2 - Stack around the variable 'xxx' was corrupted 错误解决方法
- VS2008中Run-Time Check Failure #2 - Stack around the variable 'xxx' was corrupted 错误解决方法
- VS2008中Run-Time Check Failure #2 - Stack around the variable 'xxx' was corrupted 错误解决方法
- 解决MFC运行时错误:“Stack around the variable 'dlg' was corrupted. ”
- 解决MFC运行时错误:“Stack around the variable 'dlg' was corrupted. ”
- 错误:stack around the variable “XX” was corrupted
- stack around the variable "xxx"was corrupted.
- 浅析stack around the variable was corrupted
- Stack around the variable 'cmdInfo' was corrupted
- Stack around the variable was corrupted
- stack around the variable “XX” was corrupted
- 解决:stack around the variable was corrupted
- 浅析stack around the variable was corrupted
- Stack around the variable was corrupted 解决方案
- stack around the variable "xx" was corrupted
- 使用jQuery解决IE9以下无法支持input的placeholder的问题
- org.apache.commons.codec.binary.Base64与sun.misc.BASE64Encoder等效
- Linux命令(11):tree
- groovy脚本
- jsp一个简单的调查问卷
- VS2008 运行错误 stack around variable was corrupted
- CSS学习笔记之背景属性
- maven仓库--私服(Nexus的配置使用)
- Servlet生命周期与工作原理
- Github 开源代码
- 硬链接和软链接
- 利用TouchDelegate提升用户体验
- C#+ArcGIS Engine 获取地图中选中的要素
- Html.RenderPartial("")与Html.Partial("")区别