Hi everyone,

I've been just asked to debug an older project, that seems to slow down the
system more and more as it runs. And I'm supposed to debug it NOW, in the
next 10-20 minutes.
(Ok, not anymore - I've just been told the installation will be postponed in
any case, since we still need to test, but I still need to get it ready for
testing)

I've looked through it, and all the objects are being cleaned up nicely
through my cleanup routine. I optimized where I could (cleaning up my
cleanup routine, deleting lists in object properties, that kind of thing).
The one thing that is bothering me is that I have a sprite behavior
(attached to multiple sprites) removing its own instance.
The script is:

on deactivate me
   me.cleanup()
   mySprite.scriptInstanceList.deleteOne (me)
end

on cleanup me
   psTarget = Void
   poGroundContol = 0
end

(--poGroundControl is an object and psTarget is usually a sprite but can in
some cases become a list. The cleanup method is also called from the
endSprite event)


Is that Kosher? Can a sprite's instance remove itself from the sprite, or
does it have to be done from outside?

Is there anything else that might be causing the trouble?

No timeOut or imaging objects, btw - it's an old project, D7 (windows)

TIA,

Karina









[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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