04.11.2018, 06:43
Yes, you're right, but I use signed int, so 2^31. However, it's not easy to create such a number of timers, of course if you don't do it on purpose. Unfortunately, increasing ID will not help. If the first timer with ID 1 isn't killed, then we will get a collision. I can change type for this variable, but then the functions like SetTimer will return ID < 0.