Re: Status Stack Overflow
Quote:
How is it possible that calling the recursion causes a status stack overflow.
Pretty simple: This recursion has recursed too deeply.
In other words, there are two many stack frames of your function at the same time.
That may happen if there are too many levels of recursion, or if each stack frame is huge, for example, if you use an automatic variable of array type.
Re: Status Stack Overflow
Hi,
If you make a very deep recursion or you have many non-dynamic variables you can overflow the amount of stack memory.
I think this article can helps you.
If you are using VC++ you can override the amount of memory reserved for stack, in this way:
Code:
#pragma comment (linker, "/STACK:0x500000")
VC++ reserves 1Mb of memory for stack this preprocessor directive raises it up to 5Mb.
I'm sure there's another way if you are using another compiler, read its documentation.
However, I think this is not the better way, I think is better build your automatic variables dynamic.
Albert.