Skip to main content
Participating Frequently
Mar 29, 2016 6:31 PM UTC
Question

How is the Timer.currentCount implemented in AIR on a Mac.

I have a timer (delay=2000,repeat=0) which should run forever, but it stops after about 25 days.

A 32 bit signed integer incrementing every 100ms will overflow in day 24, hour 20 so I am suspecting that this will be the problem (somehow). 

I see that the currentCount of the timer increments every 2 seconds, so I am wondering if currentCount is implemented as a time in milliseconds divided by the delay and when it overflows the timer stops.

Can anyone confirm this in the run time, or offer a better explanation?

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

3 replies

itlancer
Inspiring
Feb 10, 2018 11:00 PM UTC

Adobe, any news about this issue?

There is no updates on bug tracker: Tracker

Translate
maretronAuthor
Participating Frequently
Apr 25, 2016 3:09 PM UTC

Update:

I have now run a timer for 23 days, and have the value of the count when the timer stops.

It is 17126872 for a 100 ms timer.

I had a number of timers going at the same time with different delays and they all stopped at the same time, implying that the critical value is somewhere between 1712687200 and 1712687299.

Any further insight will be appreciated.

In the mean time I'm resetting the counter before it gets there.

Translate
itlancer
Inspiring
Mar 31, 2016 11:31 AM UTC

I think this is problem with getTimer() function that returns int value and it overflow after 24 days: Bug#4067214 - Applications are being operated only for 23 days 20 hours 32 minutes 9seconds

I also have this problem with Windows devices.

Translate