Do I need to kill non-repeating timers?
#1

Title says all.

If I were to use settimerex and set it to repeating false would I need to kill it after it has been called and if I didn't what would happen?
Reply
#2

No, you don't need. Only if you want to kill the timer before it executes.
Reply
#3

I've been having issues with timers not being called.
Reply
#4

In short, no.

When you kill a timer, that timer's ID is never freed, i.e. used again internally. This is because timer IDs are incremental. So if you kill timer ID 5, the ID of the next created timer will be 6 instead of 5. Think of it as an AUTO_INCREMENT column in a SQL database.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)