Skip to main content
calmchessplayer
Inspiring
March 20, 2010
Question

InternalError plz advise

  • March 20, 2010
  • 1 reply
  • 746 views

i'm getting the following error in my admin console Sending error message: C:\Adobe\FMS3\scriptlib\application.asc: line 80: InternalError: too much recursion ..........what does it mean and what can i do about it?

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    March 20, 2010

    I guess, you are not using the terminating condition for the recursion in your script. If possible can you share the function in the script around line 80 in the application.asc and the places from where it gets called.

    calmchessplayer
    Inspiring
    March 20, 2010

    application.onConnect = function(client,userType) {


    client.adminData = userType;

    //line 80 
    if (application.clients.length==0){
      this.counter = 0;
     
    } else {
      if(client.adminData == 1){
      this.counter++;
      }
    }
    //end line 80 block


    //register user to framework
    if(client.adminData == 1){
    gFrameworkFC.getClientGlobals(client).id = "empty";
    }
    gFrameworkFC.getClientGlobals(client).counter = this.counter;

    // Data init for new client
    this.clientHash[this.clientPrefix+this.counter] = client;
    this.clientTimeOutCount[this.clientPrefix+this.counter] = 0;
    this.clientCurPingCount[this.clientPrefix+this.counter] = 0;
    this.clientPrevPingCount[this.clientPrefix+this.counter] = -1;

    // Accept the new client's connection
      this.acceptConnection(client);


    }

    calmchessplayer
    Inspiring
    March 20, 2010

    a google search revealed the answer just put this in appStart

                 this.onPublish = null;
                 this.onUnpublish = null;