CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

How to increase stack size (VC++6.0)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2003, 00:15
Default How to increase stack size (VC++6.0)
  #1
Newbie
Guest
 
Posts: n/a
Everyone,

I encountered a stack overflow problem when I run my program which has a big array. I wonder if you all can tell me how increase stack size under VC++6.0 compiler environment.

Thanks!

Newbie
  Reply With Quote

Old   November 26, 2003, 01:34
Default Re: How to increase stack size (VC++6.0)
  #2
Marcus Lobbia
Guest
 
Posts: n/a
I do not know of any stack size setting in VC++6.0, but are you sure that you have enough memory installed on the machine to run your program? I have run into memory allocation errors on some of my programs when I physically do not have enough memory (e.g., 512MB, 1GB, etc) to account for all the variables and arrays. Try decreasing your array size (or number of arrays), or maybe install more memory...?
  Reply With Quote

Old   December 1, 2003, 10:15
Default Re: How to increase stack size (VC++6.0)
  #3
Rongguang Jia
Guest
 
Posts: n/a
Hi, Newbie,

The stack overflow may be because you have a big array in a function. If you place the array globally, probably you will solve this problem. Or you may used dynamic allocation on the heap if you insist on using the local array. In addition, you need to avoid too deep recursion.

Regards, Rongguang
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 04:01
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 15:37
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


All times are GMT -4. The time now is 17:39.