Microsoft VBScript runtime error '800a001c'
Out of stack space: 'BreakLine'
/RepGenInfo_w.asp, line 11
Can anyone help me figure out how to overcome this?
Could you post some code so we can get some context?
Are you using a recursive function? Sometimes recursive functions,
if not controlled properly, will max out the stack and cause this error.
-Chad
I had one experience with running out of stack space. It happened with
"recursive" subroutine calls (you know, when a subroutine calls itself
repeatedly). The system was saving the "return" parameters in a "push down"
stack, and when I had done this too many times, it ran out of space.
I'm not sure how this experience might apply to your situation, but I
suspect that either your query is causing a loop calling subs, or it is
somehow too complicated for the stack space allocated on the server machine.
(And, don't ask me how to increase the stack space).
hth, jw
Function BreakLine(ObjFile, str)
length = Len(str)
If length < 80 Then
ObjFile.WriteLine str
Else
firstspace = InStr(80, str, " ")
line1 = Left(str, firstspace)
line2 = Right(str, (length - firstspace))
ObjFile.WriteLine line1
line2 = BreakLine(ObjFile, line2)
End If
End Function
It obviously is recursive, causing the problem. Any suggestions on
overcoming it? Thanks!
"Chad Myers" <cmy...@NOSPAM.austin.rr.com> wrote in message
news:OwwHcx5...@cppssbbsa02.microsoft.com...
>
> "Michael Blake" <bl...@nccn.org> wrote in message
> news:8s21ee$lkf$1...@bob.news.rcn.net...
> > When calling for data from a SQL Server DB, I received the following
error:
> >
> > Microsoft VBScript runtime error '800a001c'
> > Out of stack space: 'BreakLine'
> > /RepGenInfo_w.asp, line 11
> >
> > Can anyone help me figure out how to overcome this?
>