OK, with the standard stack size of 1M, my recursion nests approx 7180 times before it frops to the console.
I'm using MS Visual C++ 6, WinXP
I've found ways to modify the stack size at compile time using stack size and editbin /stack 4096 filename.exe etc...
My problem is, the size of the stack required depends on the input file passed to the program. I need, therefore, to be able to allocate more space to the stack IN my code. Also, I'm not looking to do anything clever with the stack - I don't store variables there myself, just use it to keep track of local var when recursing.
Any help greatly appreciated