Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memory Problem

Status
Not open for further replies.

klaforce

Programmer
Mar 25, 2005
124
US
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.
 
P.S.

I am using Flash MX 2004, Internet Explorer 6, and ColdFusion 7.


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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top