View Full Version : "Too much recursion" error
xlcho
Jul 1st 2008, 3:17 am
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:
koolman
Jul 1st 2008, 6:22 am
You check again condition of all your loops, there would be a forever loop somewhere.
xlcho
Jul 1st 2008, 6:34 am
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 :)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.