DLL stack size in Visual C++
Posted on 1997-08-20
I have the following problem using Visual C++ 4.0:
I first wrote my program as a console application (.exe). I use some fairly
large arrays as local vars in some functions, and when i ran the .exe
i got stack overflow messages. So i increased the stack size with the /STACK
linker option, and the routine worked.
The problem is, creating the .exe is just the first stage, to check if the
routine works. Once it does, i turn it into a DLL, because i want to invoke
a function from another Windows application . But with the DLL i can't use
the /STACK option, because ( according to the online help) it applies only to
executable files. So invoking the routine makes the calling application burst.
There is another _compiler_, not linker, option that's supposed to increase
stack size: /F , but it doesn't seem to work . Not only with the DLL, but with
the .exe as well. (specifying /F without /STACK ==> stack overflow).
So, am I doing something wrong? Or should I do something else to increase stack
All this under WinNT 4.0 .