out of stack space error (no recursion used)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Faisal Javeed (xyz_at_fake.com)
Date: 02/17/04


Date: Tue, 17 Feb 2004 11:11:36 +0500

I have windows 2000 Professional (SP2) with IE 5.5.

There is a javscript code that causes "out of stack space" error. The code
does not include any recursion but does include iterations. In the first
part of the code a loop is executed and some strings are placed inside an
array.
In the second portion of code the string from the array (which is actually
xml) is retreived and some actions are done.
This second part (iteration) when executed with large array size say 100
(not so large afterall) causes the out of stack space.
Can any one shed some light on it.
I am using recursion as well in some OTHER CODE and that recursion works
just fine so y this error in the iterating code.
Regards
Faisal



Relevant Pages

  • Re: Code structurization question ?
    ... fact that the array definition was done in a function in earlier code. ... If stack space is the only problem, ... The more I can declare as local the more memory I save. ... then allocation is not appropriate. ...
    (microsoft.public.vc.language)
  • Re: Quicksort
    ... version, unless, of course you can afford order N stack space. ... trivially easy to do it yourself, ... partition, you will use no more than logstack space. ... If the compiler does tail recursion elimination, ...
    (comp.programming)
  • Re: The benefits of recursive programming
    ... programming instead of looping, even in lower-level languages like C, is beneficial for writing maintainable, verifiable code. ... Your example of using recursion to compute ... The recursive version of the report-printing procedure actually runs in constant stack space when compiled on GCC 3.4. ...
    (comp.programming)
  • Re: Increase .NET stack space?
    ... Dacon Software Consulting ... > Is there any way to increase the .NET stack space? ... I am going to suggest that he rewrite his recursion ... > there were any way to increase the .NET stack size... ...
    (microsoft.public.dotnet.framework)
  • Re: Software bugs arent inevitable
    ... >> most programming languages) stack space is at a premium and a deeply ... >> recursive function can run out of stack space while the heap still has ... > using recursion instead of iteration doesn't cost any stack space and ...
    (comp.lang.python)