Click to See Complete Forum and Search --> : "To much recursion"


Mr_Floppy
08-12-2003, 04:40 PM
I get this error in firebird. What does it mean?

Mr_Floppy

Khalid Ali
08-13-2003, 01:39 AM
it means nothing as long as you won't specify the error.

AdamGundry
08-13-2003, 03:05 AM
Oh, the joy of recursive functions. It means the page with the error on it contains a recursive function (that is, a function which calls itself), which has an invalid exit condition, so it gets trapped in an infinite loop. For example:

function recursiveLoop(){
return recursiveLoop();
}

This will, when called, keep going round in circles until the browser crashes or throws a "too much recursion" error and stops the script.

If it's your code at fault, show it to us so we can spot the error, otherwise contact the webmaster of the site with the problem.

Adam

Mr_Floppy
08-13-2003, 07:58 AM
I am using a 3 second timeout in the function to restart the function. I have seen this done before so why isn't it working?

Mr_Floppy

AdamGundry
08-13-2003, 09:11 AM
Like I said, your code must be going into an infinite loop, which it shouldn't do if you are using setTimeout/setInterval properly. Post your code.

Adam