Adoe AIR Issue
I have an Adobe AIR application with a chart component displaying some online data. The chart component has to display a bunch of parameters about 10 of them. The application has a timer to display current system time.
The chart component is invoked from the timer(using a bindable object) as shown below. A separate bindable object is used to prevent delay in timer.
private function onTimerEvent(event:TimerEvent):void
{
//Update time in screen
oCurrDate = new Date(); curTime = oDateformatter.format(oCurrDate).toString(); oCurrDate = null; //oUpdate- Bindable object to inform chart about update //Call chart every 250 ms oUpdate.bUpdate = !oUpdate.bUpdate; }
Iam using a calllater function in chart's update event as shown below. updateParameter() will update the dataprovider of each of the parameter and draws it.
public function onUpdateEvent(evt:PropertyChangeEvent):void {
//aPlotIndex set to 0 for first parameter aPlotIndex.push(0); this.callLater(updateParameter, aPlotIndex); }
The problem is the timer and chart updation stops after running 20 to 21 days. After 20 or 21 days, the update happens only on mouse move. When I moved mouse the time displayed & data in chart are updated.
I profiled the application and found that there is no memory leakage issues. I am logging all the errors but I didn't get any error in the log also. Everything seems weird.
- Is it because of using the calllater function.
- Is it that the timer is still running but frame update not happening.
I am using Flex SDK3.3 and Flex AIR version 2.0.4.13090.
Please guide me to resolve this issue.
