Hi,
I have created an application to display live production data at the plant I work at. It is displayed on a screen out on the floor for employees to see, and it is supposed to run all day every day. I use Flash Remoting to connect to a SQL database, and then process the data and call the getData function again. The problem is that every time it loops through and calls the function to connect to the database it adds about 100K of memory used by Internet Explorer. So after about 8hrs, it is up to over 500MB of memory used by IE and the application just stops. Is there a way to reduce the amount of memory used by Flash Remoting? Thanks for any help you can give.
My actionscript code is setup as follows:
#include "NetServices.as"
#include "NetDebug.as"
//Set Default Remoting gateway
NetServices.setDefaultGatewayUrl("//define cfmx webservice
cfServer = NetServices.createGatewayConnection();
basic = cfServer.getService("cfc.CFCName", this);
basic.getScrollMessage();
basic.getSqlLive();
function getSqlLive_Result(myRecordset)
{
//code to process results done here;
processData(myRecordset);
// call function to get data again.
basic.getSqlLive();
}
Keith
The most likely way for the world to be destroyed, most experts agree, is by accident. That's where we come in; we're computer professionals. We cause accidents.
I have created an application to display live production data at the plant I work at. It is displayed on a screen out on the floor for employees to see, and it is supposed to run all day every day. I use Flash Remoting to connect to a SQL database, and then process the data and call the getData function again. The problem is that every time it loops through and calls the function to connect to the database it adds about 100K of memory used by Internet Explorer. So after about 8hrs, it is up to over 500MB of memory used by IE and the application just stops. Is there a way to reduce the amount of memory used by Flash Remoting? Thanks for any help you can give.
My actionscript code is setup as follows:
#include "NetServices.as"
#include "NetDebug.as"
//Set Default Remoting gateway
NetServices.setDefaultGatewayUrl("//define cfmx webservice
cfServer = NetServices.createGatewayConnection();
basic = cfServer.getService("cfc.CFCName", this);
basic.getScrollMessage();
basic.getSqlLive();
function getSqlLive_Result(myRecordset)
{
//code to process results done here;
processData(myRecordset);
// call function to get data again.
basic.getSqlLive();
}
Keith
The most likely way for the world to be destroyed, most experts agree, is by accident. That's where we come in; we're computer professionals. We cause accidents.