AtariJag64
Programmer
I'm trying to setup a program that will perform a function call on every tick of a timer; however, its not working correctly.
I basically just set up a default timer, with an interval of 2000.
Now I have a function within the timer1_tick() method
{
generate()
}
The function is called correctly on the first tick; however, the next tick, the function is called twice! And the third tick, the function is called 4 times..then 8 times...and so on.. The repetition of the function calls eventually crashes the program.
Does anyone have any idea what could be causing this? I haven't changed any of the parameters on the timer, I'm just using the default setup...other than the interval changed to 2000.
Thanks,
-Chris B.
I basically just set up a default timer, with an interval of 2000.
Now I have a function within the timer1_tick() method
{
generate()
}
The function is called correctly on the first tick; however, the next tick, the function is called twice! And the third tick, the function is called 4 times..then 8 times...and so on.. The repetition of the function calls eventually crashes the program.
Does anyone have any idea what could be causing this? I haven't changed any of the parameters on the timer, I'm just using the default setup...other than the interval changed to 2000.
Thanks,
-Chris B.