Results 1 to 6 of 6

Thread: Errors...

  1. #1
    Join Date
    May 2006
    Location
    Alaska
    Posts
    163
    Thanks
    5
    Thanked 2 Times in 2 Posts

    Default Errors...

    I have a script and firefox says "too much recursion" and IE (actually IE Tab in ff) says "stack overflow". The script works fine but what do those errors mean, and are they related? (The errors arn't even at the same line)
    Tell me if the code is needed but if I knew what those where I could probably fix it.

    Thanks,
    Stephen

  2. #2
    Join Date
    Aug 2007
    Location
    Kansas, USA
    Posts
    36
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Your function is calling itself too many times, essentially...

    Every time your function calls itself, it pushes more data on the stack and if the stack size isn't large enough to handle it, you'll get that error. And as far as I know, there is no way to change the stack size within IE or FF.

    You've literally got a function that is in an endless loop with no exit.

  3. #3
    Join Date
    May 2006
    Location
    Alaska
    Posts
    163
    Thanks
    5
    Thanked 2 Times in 2 Posts

    Default

    I'm pretty sure I don't have a function, but could it be a variable? I've got a prototype with a property "element" and then "element" has a property "parent", which loops back. Should I make the "parent" property into the function "getParent", or is that not the problem?

  4. #4
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Do you have a loop anywhere?
    - Mike

  5. #5
    Join Date
    Aug 2007
    Location
    Kansas, USA
    Posts
    36
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    without seeing the code, it's difficult to know

  6. #6
    Join Date
    May 2006
    Location
    Alaska
    Posts
    163
    Thanks
    5
    Thanked 2 Times in 2 Posts

    Default

    Err, yeah. Thanks for the help. I found the problem and learned my lesson with alerts. I was using them for debugging and encountered the infinite loop. I had to end the task with Task Manager. It wasn't pretty.

    Thanks,
    Stephen

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •