Mail Archives: djgpp/1997/08/08/02:36:48
Jacob Martin wrote:
> BUT, If I keep my 2D and add a 1D.....
>
> int map[100][255],map[25500];
is this global or local? my guess is local. basically, you are
allocating 204,000 bytes out of 256 K of default stack space. hence,
combined with the rest of your code, this is causing you to run out of
stack space.
it would be better to allocate such large arrays on the heap rather than
on the heap, although you can use stubedit to increase the default stack
size of your program.
btw, a variable definition by itself without any context is really not
much info to go by. i find reading code easier than debugger output.
--
Sinan
*******************************************************************
A. Sinan Unur WWWWWW
|--O+O
mailto:sinan DOT unur AT cornell DOT edu C ^
http://www.people.cornell.edu/pages/asu1/ \ ~/
*******************************************************************
- Raw text -