Skip to main content
May 20, 2010
Question

Loosing FMS connection

  • May 20, 2010
  • 2 replies
  • 523 views

Loosing FMS connection after 2 or 3 execution of the program. Y ?

thanks

    This topic has been closed for replies.

    2 replies

    May 20, 2010

    Hi,

    Could you tell me what the program does?

    And when you see the connections getting lost do you see any error message in FMS logs? Check the access.00.log, edge.00.log, core.00.log, master.00.log under FMS install dir\logs and if your program involves a server-side code then check the application.00.log too at FMS install dir\logs\_defaultVHost_\<app name>\ for any errors and let me know.

    Thanks

    Mamata

    May 21, 2010

    application.onAppStart = function(){    trace("Beggar Database is up");};

    application.onConnect = function(clientDB){    application.acceptConnection(clientDB);    Meeting = new File("Meeting.txt");    

        Client.prototype.storeData = function(cMeetingid, cTitle, cVenue, cDate, cStart, cEnd,ctopic, cDesc,cList)    {          Meeting.open("text","append");          if (Meeting.isOpen)          {               Meeting.writeln(cMeetingid, cTitle, cVenue, cDate, cStart, cEnd,ctopic, cDesc,cList);               Meeting.close();          }         };

        Client.prototype.findData = function(search)    { trace("ah")          var dbData;  var foundName;  var foundDesign;  var foundComp;          var foundEmail;  var foundPass;            var foundData;          Meeting.open("text", "read");          if (Meeting.isOpen)          {               while (!Meeting.eof())               {                     dbData = Meeting.readln(); // trace("db"dbData);                     //trace(Meeting.position);                     if (dbData == search) {                            foundName = dbData;  trace("name"foundName);                          foundDesign = Meeting.readln();  trace("name"foundDesign);  foundComp= Meeting.readln();   trace("name"foundComp);  foundEmail= Meeting.readln();  trace("name"+foundEmail);

     foundPass= Meeting.readln();  trace("name"foundPass);                          foundData= foundName""foundDesign""foundComp""foundEmail""+foundPass;                          Meeting.position = Meeting.length;                     }               }               Meeting.close();          }          return foundData;    };    clientDB.id = "Current user";};

    application.onDisconnect = function(clientDB){    trace(clientDB.id+" has left.");};

    /// this is the server code to store data in file & to search

    Petro_O__Bochan
    Inspiring
    May 20, 2010

    One of the most common reasons is the script syntax or rexecution error. Either check your console for this possibility of supply more info.