Skip to main content
May 20, 2010 8:59 AM UTC
Question

Loosing FMS connection

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

thanks

    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    May 20, 2010 10:23 AM UTC

    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

    Translate
    May 21, 2010 3:44 AM UTC

    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

    Translate
    Petro_O__Bochan
    Inspiring
    May 20, 2010 9:17 AM UTC

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

    Translate