Re: Increase .NET stack space?

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



First thing to do is review the recursive logic to see why it's taking so
much stack space. Maybe the recursive algorithm is not properly terminating?
Maybe some of the objects being created on the stack might better reside on
the heap (use classes instead of structs)? If the stack usage is justified,
perhaps the nature of the problem doesn't actually lend itself to a
recursive solution.

HTH,
Tom Dacon
Dacon Software Consulting


"Tom" <tom@xxxxxxxxxx> wrote in message
news:#7DXWzcfFHA.4008@xxxxxxxxxxxxxxxxxxxxxxx
> Is there any way to increase the .NET stack space? A coworker is
> writing a VB.NET application that is using recursion, and it is running
> out of stack space. I am going to suggest that he rewrite his recursion
> routine to NOT use recursion, but thought I would check first to see if
> there were any way to increase the .NET stack size... I did do a Google
> search but didn't find anything there.
>
> Thanks.
>
> Tom


.



Relevant Pages

  • 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)
  • Increase .NET stack space?
    ... Is there any way to increase the .NET stack space? ... writing a VB.NET application that is using recursion, ... I am going to suggest that he rewrite his recursion ...
    (microsoft.public.dotnet.framework)
  • 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)
  • out of stack space error (no recursion used)
    ... There is a javscript code that causes "out of stack space" error. ... does not include any recursion but does include iterations. ... In the second portion of code the string from the array (which is actually ... I am using recursion as well in some OTHER CODE and that recursion works ...
    (microsoft.public.scripting.jscript)
  • 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)