Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error:Stack overflow at line: 0

Status
Not open for further replies.

crmpicco

Programmer
Nov 29, 2004
66
GB
Error:
Stack overflow at line: 0

what does this mean anyone?

Picco
 
Hmm, not sdure I like the MS error description in this situation.

The only times I have seen that error from ASP were when I alloweda recursive funciton to recurse to deeply and when I had a set of to many objects linked together (which wre using recursive function calls to their children). SO basically what would happen is that I would make a single call, it would get pushed onto the stack, that funciton would call itslef (or a child object with the same function), the second function would get pushed to the stack while it was called a third time, etc. Every previous call dependned on the next call in order to complete so I ended up pushing to many waiting function onto the stack.

As an example, here is a function that theoretically would infinitely recurse, therefore each inner call causes the parent to be put on the stack. It overflows the stack quite quikly:
Code:
<%
Function BadRecurse(num)
   Response.Write "Level " & num & "<br/>"
   Response.Flush
   BadRecurse = BadRecurse(num + 1)
End Function

Response.Write BadRecurse(1)
%>

-T

barcode_1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top