2 Replies Latest reply on Jan 4, 2010 2:36 PM by Rix

    Memory Management Advice?

    Rix Level 1

      Hello Experts.

       

      I'm experimenting with dynamically created and destroyed script objects with ancestors (strange how the child object seems to create the ancestor instance????). Some of these create and use image objects during their life span, referenced by the scripts own properties. My main question is if I set the reference to the script object to VOID or zero do the image objects created by the script get garbage collected as well?

       

      Or do I have to create some custom on ~ destroy() style handlers for each script and remember to zero each image object /ancestor that the script instance creates?

       

      Any memory management advice much appreciated in general!

       

      Thanks

       

      Richard