0 Replies Latest reply on May 9, 2007 8:47 AM by sathishkumarr

    sendAndLoad memory leak

    sathishkumarr
      Hi gurus,
      I have created flash web page, I am using sendAndLoad method, get the http data for every 200 milliseconds, I got memory leak,
      memory starts at 40mb after 5 minites its like 45mb is there a way in flash to refresh the memory ?


      code :

      var send_lv:LoadVars = new LoadVars();
      var result_lv:LoadVars = new LoadVars();
      var httplock:Boolean = true;
      result_lv.onLoad = loading;
      result_lv.ignoreWhite = true;
      function getUrls()
      {
      if (httplock)
      {
      httplock = false;
      send_lv.sendAndLoad(" http://mysite/gateway/data", result_lv, "POST");
      }
      }

      function loading(success:Boolean)
      {

      httplock = true;
      if (success)
      {
      result_ta.text =this;
      }
      else
      {
      result_ta.text ="Error connecting to server.";
      }

      }
      setInterval(getUrls, 200);