开发者

Error #1502: A script has executed for longer than the default timeout period of 15 seconds

开发者 https://www.devze.com 2022-12-19 06:29 出处:网络
I got this error and I am not sure what it\'s about. The last thing I remember doing is adding a clearInterval() method to clear some setTimeOut() intervals variables. Besides that I am not sure what

I got this error and I am not sure what it's about. The last thing I remember doing is adding a clearInterval() method to clear some setTimeOut() intervals variables. Besides that I am not sure what it could be. Not asking for a solution, but if anyone knows any possibilities of what could trigger that 开发者_StackOverflow中文版error, maybe that might help me to figure out where it's coming from.


An infinite loop can cause this error. You are into a function that never ends and since everything is freezed, the player let you interrupt the running script after a timeout period.


Nine times out of ten it's something like this:

var i:int;

while (i < 10)
{
    // do something
}

i.e. you probably forgot to increment i,

0

精彩评论

暂无评论...
验证码 换一张
取 消