有这样的问题
#define ROW 100
#define COL 20
#define OUNUM 1
class CBpDlg : public CDialog
{
// Construction
public:
void BpBackward(double INPUT[ROW][COL],int m_row);
void BpForward(double INPUT[ROW][COL],int m_row);
CBpDlg(CWnd* pParent = NULL); // standard constructor
double OUTPUT[ROW][OUNUM]; //网络输出
double IUPUT[ROW][COL]; //网络输入
double IdealOut[ROW][OUNUM]; //理想输出
CString Num[ROW]; //代号
_RecordsetPtr m_pRecordset;
_ConnectionPtr m_pConnection;
------
}
当ROW定义为1-4000时都运行没错,但是当ROW定义到5000以上,运行出现stack flow
程序发生异常。请问,这是什么原因造成的,怎么解决呢?
#define ROW 100
#define COL 20
#define OUNUM 1
class CBpDlg : public CDialog
{
// Construction
public:
void BpBackward(double INPUT[ROW][COL],int m_row);
void BpForward(double INPUT[ROW][COL],int m_row);
CBpDlg(CWnd* pParent = NULL); // standard constructor
double OUTPUT[ROW][OUNUM]; //网络输出
double IUPUT[ROW][COL]; //网络输入
double IdealOut[ROW][OUNUM]; //理想输出
CString Num[ROW]; //代号
_RecordsetPtr m_pRecordset;
_ConnectionPtr m_pConnection;
------
}
当ROW定义为1-4000时都运行没错,但是当ROW定义到5000以上,运行出现stack flow
程序发生异常。请问,这是什么原因造成的,怎么解决呢?
解决方案 »
- 线程高手来看看。(简单)
- 怎样 让actvix 控件运行时 可见 ??????
- 连接时出现error LNK2001: unresolved external symbol?
- 菜鸟虚心求教:如何在对话框中设置文本?
- 急求!!!!!:关于mapi函数的求教,或接收电子邮件的程序代码??
- 在ADO中调用存储过程怎样得到输出参数的值
- 看一看,瞧一瞧得分拉!
- 如何在视图里添加背景图案?
- 请问,win2K/winXp下怎么在程序中调用“本地连接 属性”那个的对话框?
- 提问:关于IE5.5 和I5.0的内部机制问题!
- 请教:菜单问题
- 自己填写TCP,IP数据包,然后发送,出错,大家多帮忙,谢谢,郁闷着呢!UP有分
/STACK:reserve[,commit]
The /STACK option sets the size of the stack in bytes. This option is only for use when building an .exe file.This option specifies the total stack allocation in virtual memory. The default stack size is 1 MB. The linker rounds up the specified value to the nearest 4 bytes.commit is subject to interpretation by the operating system. In Windows NT and Windows 2000 it specifies the amount of physical memory to allocate at a time. Committed virtual memory causes space to be reserved in the paging file. A higher commit value saves time when the application needs more stack space, but increases the memory requirements and possibly the startup time.Specify the reserve and commit values in decimal or C-language notation.Another way to set the size of the stack is with the STACKSIZE statement in a module-definition (.def) file. STACKSIZE overrides the Stack Allocations (/STACK) option if both are specified. You can change the stack after the .exe file is built by using the EDITBIN tool. To set this linker option in the Visual Studio development environment Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.
Click the Linker folder.
Click the System property page.
Modify one of the following properties:
Stack Commit Size
Stack Reserve Size