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 / Visual Studio.NET / General / September 2005

Tip: Looking for answers? Try searching our database.

increse stack size

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Philipp Holzmann - 06 Sep 2005 11:15 GMT
I am currently working on a small .net API (in c#) calling a Fortran DLL.

My Problem is: the fortran dll needs much stack, so i have to increase the
stack Size befor calling the dll - methods.

My question is: Is ther a possibility to set a compiler / linker option in
VS (either 2003 or 2005) to increse the stack size of the programm (to more
than the default of 1 Mb)?

thanks, Philipp Holzmann
Signature

Vision is the ability to see the invisible

"Gary Chang[MSFT]" - 07 Sep 2005 04:32 GMT
Hi Philipp,

>My question is: Is ther a possibility to set a compiler / linker
>option in VS (either 2003 or 2005) to increse the stack size
>of the programm (to more than the default of 1 Mb)?

There is no such setting in the VS2003/VS2005 IDE(or the similar .NET
compiler option) to specify the stack size of a .NET executable, this is
because in most scenarios, such consideration is taken care by the .NET
runtime, and the compiler could not figure out how big your stack will
grow...

However there is a trick way to do this like the Visual C++ develops did,
use the VC utility EditBin.exe to increase the stack size for any given
.NET executable:

editbin /stack:4000000 yourAssembly.exe

Please refer to the following webblog link and MSDN doc for the details:
http://blogs.geekdojo.net/richard/archive/2003/10/10/207.aspx

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html
/_core_.2f.stack_editbin.asp

By the way, you can find the EditBin.exe utility in your VS2003's vc/bin/
directory...

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

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.