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
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.