Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Deleting / Unsetting Hierachical Objects / Faces

From: james:mustard at: 20-Dec-2001 2:49

Thanks for the tips Petr :) I got most of the memory recovered now - it seems that when you reset / unset an object none of its member attributes / objects are sent to garbage collection - especially in the case of large series of images like i am using in my image-bank. These all had to be deleted manually before resetting parent objects. eg: while [(length? space-station/image-bank/images) > 0][remove space-station/image-bank/images space-station/image-bank/images/1] space-station: copy [] recycle It would be nice if deleting the container removed all the contents rather than having to fish through the contents and kill each one... :) James.