It's not a problem to have the timeOut forget itself, but there's a bug in Director you need to be aware of. Jakob reported this a while back.Very quick question. Will I run into any potential mishaps if I have a timeout object forget itself?i.e. timeout("thisTimer").new(1000, #handlerToCall, me) on handlerToCall doThisStuff timeout("thisTimer").forget() end
The way you are creating the timeOut, it will never leave memory. You need to assign it to a variable--any old variable. A local dummy variable that immediately passes out of scope is ok. E.g.:
disposableVar = timeout("thisTimer").new(1000, #handlerToCall, me)
Of course, if the variable is global or property, or stays in scope, you'll need to zero it out when you forget the timeOut.
Cordially,
Kerry Thompson
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
