Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2005

Tip: Looking for answers? Try searching our database.

Increase .NET stack space?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tom - 01 Jul 2005 00:38 GMT
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
Tom Dacon - 01 Jul 2005 01:09 GMT
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

> 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
[quoted text clipped - 6 lines]
>
> Tom
Willy Denoyette [MVP] - 01 Jul 2005 10:40 GMT
> 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
[quoted text clipped - 6 lines]
>
> Tom

The only way to change the stack size in v1.x is to run EDITBIN.exe on the
.exe file.
Note that you'll change the stack size of all threads in the process.

Willy.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.