[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stack Overflow



At 7:53 PM 4/24/95, Thomas Herbig wrote:
>I am running code that is well-tested and works reliably, but I am for
>the first time reading a particularly long input file using a recursive
>function.  MCL breaks with an error of "stack overflow" at the depth of
>frame 5213, preventing the my program from continuing.  There is enough
>memory available.
>
>Is there a way to increase the stack size?  I would prefer to do that
>rather than rewriting my code.
>
>If the stack size cannot be increased, this limitation and its limit
>value should be placed in the documentation so that people don't rely on
>recursive code which could overflow the stack under certain conditions.
>
>Thanks,
>Tom Herbig
>
>Princeton University
>Physics Department

You can increase the stack size before you launch MCL by using
resedit to edit MCL's LSIZ resource. There you can set minimum stack
size, maximum stack size, and stack size as a percentage of total size.


Alice@digitool.com