Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
call stack question
Not infrequently, I run into "Out of stack space" run time errors when
running recursive routines. Is there any solution to this other than eliminating recursion and rewriting the code with my own stack? Is there, for instance, some way to allocate more room for the VBA call stack? Dave Ring |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
call stack question
Dave,
As far as I know, there is no way to increase stack size. You'll have to rewrite the code in such as way that it doesn't fill up the stack, e.g., eliminating so much recursion. -- Cordially, Chip Pearson Microsoft MVP - Excel www.cpearson.com "Dave Ring" wrote in message ... Not infrequently, I run into "Out of stack space" run time errors when running recursive routines. Is there any solution to this other than eliminating recursion and rewriting the code with my own stack? Is there, for instance, some way to allocate more room for the VBA call stack? Dave Ring |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
call stack question
Pity. Recursion is simpler and clearer than setting up my own stack
arrays, and when I do the latter, I find a depth of 100-200 is usually adequate. I don't run out of memory, so there seems to be no reason that VBA couldn't be more generous with its internal stack limit. Dave Chip Pearson wrote: Dave, As far as I know, there is no way to increase stack size. You'll have to rewrite the code in such as way that it doesn't fill up the stack, e.g., eliminating so much recursion. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Visual basic 6.5 question using combo box and call procedure. | Excel Discussion (Misc queries) | |||
On call calendar question | Excel Discussion (Misc queries) | |||
Very easy question! (But not sure what to call it - maybe transpos | Excel Worksheet Functions | |||
Call Center Management: How to calculate 'cost per call' | Excel Discussion (Misc queries) | |||
stack columns | Excel Discussion (Misc queries) |