Groups | Blog | Home
all groups > inetserver asp components > october 2003 >

inetserver asp components : Out of stack space


Cédric
10/24/2003 2:18:27 AM
Hello,
I'm using iis 5 on windows 2000 Pro. I have a recursive=20
function. If the recursion is too big, I get a "Out of=20
stack space" error. On a windows 2000 Server, with exactly=20
the same data, i have no error.
How is it possible to increase the stack size ?
Thank you
Pat [MSFT]
10/24/2003 8:57:45 AM
The stack on both should be the same, 256k (this has been true since IIS4).
The difference may be in the fix level (i.e. more or less of the stack may
have been used before your code is run). .exe's compiled w/Visual Studio
defaults have 1MB (configurable).

As to changing the stack size, it depends on what you are doing. You can
specify thread stack size on threads that you create. Otherwise, you will
be limited to the 256k.

One other idea is to run that function in a .exe, called as either a CGI or
ActiveX.Exe. That way you could specify whatever stack size you want.

Pat

[quoted text, click to view]
Hello,
I'm using iis 5 on windows 2000 Pro. I have a recursive
function. If the recursion is too big, I get a "Out of
stack space" error. On a windows 2000 Server, with exactly
the same data, i have no error.
How is it possible to increase the stack size ?
Thank you
Cédric

AddThis Social Bookmark Button