Re: Increase .NET stack space?
- From: "Tom Dacon" <tdacon@xxxxxxxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 17:09:30 -0700
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
.
- References:
- Increase .NET stack space?
- From: Tom
- Increase .NET stack space?
- Prev by Date: Re: Cannot Create ActiveX Component
- Next by Date: Re: Setselected for listbox works with debug but not with Release mode
- Previous by thread: Increase .NET stack space?
- Next by thread: Re: Increase .NET stack space?
- Index(es):
Relevant Pages
|