All,
It's also worth noting that you must take a little extra caution in your clean-up 
routines when using timeout objects. For these objects you really must remember to 
forget them and then set their referring variable to VOID:

property pTimeoutObject

on new me
   pTimeoutObject= timeout("testing").new(50,#someHandler,me)
   return me
end

on mCleanUp me
   pTimeoutObject.forget()
   pTimeoutObject = VOID
end

on someHandler
  ...
end 

Failure to take this extra step can lead to orphaned timeout objects lingering 
unreferenced yet functioning in memory. AFAIK, Director/Shockwave is doing some 
internal/under-the-hood tracking and it will retain a reference to the timeout object 
until you explicitly forget it (that internal reference keeps the object from getting 
cleared from memory), setting your prop to VOID or zero will not suffice.


Cheers,
Tom

.
[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!]

Reply via email to