Skip to main content
calmchessplayer
Inspiring
Mar 20, 2010 2:05 AM UTC
Question

InternalError plz advise

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 is closed to new replies. Start a new post to keep the conversation going.

    5 replies

    Adobe Employee
    Mar 20, 2010 3:34 AM UTC

    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.

    Translate
    calmchessplayer
    Inspiring
    Mar 20, 2010 12:47 PM UTC

    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);


    }

    Translate
    calmchessplayer
    Inspiring
    Mar 20, 2010 9:05 PM UTC

    a google search revealed the answer just put this in appStart

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

    Translate