Too Many Timers error?

Former Member
Former Member
My widget uses 2 non-repeating Timers, however I'm calling:

timer1.stop();
timer1.start( method(:callback1), 500, true )


a number of times. e.g., if the user has changed an option. Very quickly I get the "Too Many Timers" error. This seems like a bug to me? If I'm explicitly stopping the timers and then restarting them, there should never be more than 2 timers active?

Thanks
  • This is a bug. Thanks for the report, we'll look into it.
  • @CLIMBERS.NET I'm curious to see whether this is still an issue for you. I don't have the same problem when I try something similar. I tried stopping and starting the same timer several times in a row and had no issues:

    function onLayout(dc)
    {
    timer1 = new Timer.Timer();

    timer1.start( method(:callback1), 500, true );
    timer1.stop();
    timer1.start( method(:callback1), 500, true );
    timer1.stop();
    timer1.start( method(:callback1), 500, true );
    }
  • Former Member
    Former Member over 10 years ago
    Sorry, I don't know if the bug is still there - I rewrote my app to workaround the problem.