Page 1 of 1

Timer Self Destruction?

PostPosted: Thu Apr 22, 2004 9:51 am
by jazz_e_bob
I create a timer that repeats with a specified quantity.

Will the timer destroy itself after the timer event has happened?

Image

PostPosted: Thu Apr 22, 2004 1:16 pm
by ingsan
Hello !
The answer is no, the timer will not destroy itself after Event. Actually it will loop itself until you decide to destroy it.
So declare that AfterEvent > Destroy(YourTimer)

See you :)

PostPosted: Thu Apr 22, 2004 2:15 pm
by Just4Fun
ingsan's post seems correct to me. I believe that you need to destroy your timers after the event where they are no longer needed.

PostPosted: Thu Apr 22, 2004 6:05 pm
by ingsan
Yes, I encountered this same problem before.

Ex :
    I have MainActor
    On DestroyActor, create TimerA
    On TimerA, create MainActor.


If you don't destroy TimerA, MainActor will be forever created after TimerA :(

:mrgreen:

PostPosted: Thu Apr 22, 2004 7:50 pm
by jazz_e_bob
But what if I have a timer that repeats only once?

I suppose it must stay in memory until destroyed by code...

8)

PostPosted: Thu Apr 22, 2004 10:00 pm
by ingsan
You're right, a timer with specified quantity repeats only the specified time :idea:
Ooops :oops:

PostPosted: Thu Apr 22, 2004 11:14 pm
by makslane
A timer with specified quantity repeats will be destroyed after the specified count

PostPosted: Fri Apr 23, 2004 3:44 am
by jazz_e_bob
You da man Makslane!
Image