"Too much recursion" error

Discussion in 'JavaScript' started by xlcho, Jul 1, 2008.

  1. #1
    I get a 'too much recursion' error in my javascript project. I've got huge expirience with JS but never got this error before. Does anyone have any suggestions what could be causing this? :eek:
     
    xlcho, Jul 1, 2008 IP
  2. koolman

    koolman Peon

    Messages:
    76
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You check again condition of all your loops, there would be a forever loop somewhere.
     
    koolman, Jul 1, 2008 IP
  3. xlcho

    xlcho Guest

    Messages:
    532
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Actually, the problem was in the old machine on which i tested the scripts. Turns out, that each browser has a max amount of memory for script execution. I'm creating a lot (unlimited) of objects, which are members of the window object and the old machine can't take it :) It runs just fine on a newer machine, so i've got no more worries. I changed some stuff and will test it again later, maybe it will run well on that old machine as well, but even if it doesn't, this shall not be a big problem considering the systems that will actually use the scripts are much faster..

    Thanks :)
     
    xlcho, Jul 1, 2008 IP