TIMELINE_KILL question
Joe Hebert
Junior Member
Is there any reason why I need to check to see if a TIMELINE is ACTIVE before I KILL it? I know it generates an error of invalid ID if it?s not ACTIVE to begin with but I?d like to know if there are any negative repercussions in performing a direct KILL.
Thanks,
Joe
Thanks,
Joe
Comments
-
AFAIK it's just a runtime error without any effect (I never have seen any)
-
I have always assumed runtime error = bad. You never know when it will have unforseen detrimental effects, including processor bog down while it handles the exeptions. So I always test if the timeline is active first. I also test any timeline I am starting up if outside of the DEFINE_START section. It would be nice, all that said, if the functions tested internally; it seems simple enough to do.
-
Originally posted by DHawthorne
I have always assumed runtime error = bad.
I absolutely agree :-) -
I always thought runtime errors were only bad if you weren't expecting them.

Seriously, if you call TIMELINE_KILL and get a "no such timeline" error, that shouldn't be a problem... Right?
Where's our official AMX guys to answer this one?
- Chip -
Maybe, maybe not. There is usually added processing to handle this kind of exception, so it is probably more efficient to test first so it doesn't happen. If it only ha[ppens once in a while, or if the rest of your code is pretty simple, it probably doesn't matter. But get a real complex system, and such things can cause timing issues and other problems which are really hard to track down. It's entirly possible that the function actually does just test internally and spit out the message, making my argument moot. But unless I knew for sure, I'd rather it ran clean.Originally posted by Chip Moody
Seriously, if you call TIMELINE_KILL and get a "no such timeline" error, that shouldn't be a problem... Right?
- Chip
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums