• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 4. Working with Functions > Debugging and Troubleshooting Script Proble...

Debugging and Troubleshooting Script Problems

Avoiding Infinite Recursion

I built and ran a recursive function, but Internet Explorer reports a Stack overflow error, and Netscape reports a Too much recursion error.

These error messages indicate that you have no "brakes" on your recursive function so, if not for the errors, it would call itself forever. This is called infinite recursion, and the actual maximum number of recursive calls depends on the browser and operating system, but the range is between about 75 and about 1,000.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint