文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > 运行时错误:Stack Overflow的解决办法
侵权投诉

运行时错误:Stack Overflow的解决办法

运行时错误:Stack Overflow的解决办法(需要重新编译源代码)

现象:
编译正常通过,但运行时出现——

forrtl: severe (170): Program Exception - stack overflow
Image PC Routine Line Source
2DWP.exe 00401A73 Unknown Unknown Unknown
2DWP.exe 004029B9 Unknown Unknown Unknown
2DWP.exe 00449929 Unknown Unknown Unknown
2DWP.exe 0042EDB9 Unknown Unknown Unknown
KERNEL32.dll 77E7CA90 Unknown Unknown Unknown
Incrementally linked image--PC correlation disabled.
Press any key to continue

解决方法:
在project->settings->link->Category=output->stack allocations
设一个足够大的值就行





参考:
doc.guandang.net

Issue
2001

doc.guandang.net
Doctor Fortran - Don't Blow Your Stack!
Steve Lionel
Visual Fortran Engineering
"Doctor, my stack is overflowing! What does it mean?! Is there a cure?!" The
Doctor frequently sees questions like these, and he realizes it's time for a
general article on the subject of stack allocation, as well as the other
memory allocation types, static and dynamic.

Static allocation
"Everybody's got to be somewhere," the saying goes. And so it is with your
program's data - it has to live somewhere in memory while it is being
referenced (registers are a special kind of memory we won't get into here.)
The compiler, linker and operating system work together to determine exactly
where in memory a piece of data is to reside. The simplest method of
assigning locations is "static allocation", where the data is assigned a
fixed (static) address by the compiler and linker in the executable image
(EXE). For example, if variable X is statically allocated at address 4000,
it is always at address 4000 when that EXE is run, no matter what else is
going on in the system. (DLLs can also have static data - it is allocated at
a fixed offset from the base address where the DLL gets loaded.)

Static allocation is simple from the compiler's perspective because all that
is needed is to create a list of variables that need allocation, and lay
them down in memory one after the other. A run-time advantage of static
allocation is that it is usually easy and fast to access a fixed address and
statically allocated data can be used from anywhere in the program. But
static allocation has disadvantages too. First, if you have any reentrant or
parallel code, the multiple codestreams are both trying to use the same
data, which may not be wanted. Second, if you have many routines which need
a lot of memory just while they're executing, the available address space
can fill up quickly (for example, ten routines each of which declares a
1000x1000 REAL(8) array need a total of 80,000,000 bytes just for those
arrays.) And perh

第1页

你可能喜欢

  • Excel使用技巧大全(超
  • 使用技巧
  • sort函数
  • 问题分析
  • 新手魔方公式图解
  • C语言指针详解
  • 网速慢的解决办法
  • 拖欠工资解决办法

热门文档

相关文档

  • 提示stack_overflow_at_line:0解决方法[1]

    提示stack_overflow_at_line:0解决方法[1]_其它_高等教育_教育专区。计算机今日...运行时错误:Stack Over... 4页 免费喜欢此文档的还喜欢 解决浏览器出现stack ...

  • 如何解决C、C++中stack overflow问题

    如何解决C、C++中stack overflow问题_计算机软件及应用_IT/计算机_专业资料。如何...解决这一问题的办法是在递归函数中每次动 态的分配变量的内存, 在使用结束的...

  • 我是如何在Stack Overflow找到工作的

    我是如何在Stack Overflow找到工作的_求职/面试_求职/职场_应用文书。资料来源:...他问的问题他已经问了好几年 了, 我给出了一个他从来没见到过的解决方案。 ...

  • stack overflow处理方法

    stack overflow处理方法_IT/计算机_专业资料。对于c/c++中常出现的stack overflow...2. 堆栈上只能分配 1m 的地址空间,所以数组太大的话也会出现堆栈溢出的错误;...

  • 解决浏览器出现stack_overflow_at_line

    解决方案: 1、造成了"堆栈的益出",在 IE 的【Internet 选项】的【高级】里...运行时错误:Stack Over... 4页 免费 提示stack_overflow_at_... 2页 免费...

  • stack over 另类解决方法

    一死递归,当然就栈溢出(Stack Overflow)。 第二种情况:在FormClose调用Form1....Form1 then Form1 := nil; 用这个方法来防止别的程序对Form1的无意错误引用...

  • stack_overflow_at_li

    浏览器如果出现"stack overflow at line:0"并且有些图片无法显示的问题,是由于注册 表被串改了 这是由于 pngfilt.dll 问题,解决方法如下 把以下内容保存到记事本...

  • 解决浏览器出现stack overflow at line 0

    解决方案: 1、造成了"堆栈的益出",在 IE 的【Internet 选项】的【高级】里...提示stack overflow at ... 2页 1下载券 运行时错误:Stack Over... 4页 ...

  • X5运行错误解决解决办法

    X5运行错误解决解决办法_电脑基础知识_IT/计算机_专业资料 暂无评价0人阅读0次下载举报文档 X5运行错误解决解决办法_电脑基础知识_IT/计算机_专业资料。这是...

  • LearnningWin32StackOverflow

    [原创]LearnningWin32StackOverflow 文章标题:[原创]LearnningWin32StackOverflow顶部 netxfly 发布于:2007-05-1115:28 [楼主][原创]LearnningWin32StackOverflow ...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email