Unloading object from memory
[1/3] from: coussement:c:itc:mil:be at: 19-Jan-2001 11:27
Hi REBOLians Please consider this code:
>> o: make object! [showone: does [print "one"]] >> f: func [/local o'][o': make o  o'/showone] >> f/o'
** Script Error: f has no refinement called o'. ** Where: f/o'
Can I be sure that, after the execution of 'f, o's instance o' has been un-loaded from working memory ? I'm concerned about REBOL's memory recycling and garbage management, because I should have to call a procedure similar to f a thousand (!) time in one session. Would there be any problem, I could change my approach, but preferably not ;-[ Regards, chr==
[2/3] from: gjones05:mail:orion at: 19-Jan-2001 5:29
Hi, Chris, My guess, like yours, was that the garbage management would handle the problem. But life, like vote counting in Florida, does not always work like it is supposed to work. So I tested your functions in Windows 98. I opened the Resource Meter and looped the f function 1 million times continuously (while I went for some more coffee ;-). No drop in resources was noted after the initial instantiation (and no dimpled or hanging chads were found). This information and 35 cents will hopefully buy you a phone call. Scott ----- Original Message ----- From: "CRS - Psy Sel/SPO, COUSSEMENT Christophe, CPN" <[COUSSEMENT--C--ITC--mil--be]>
[3/3] from: coussement::c::itc::mil::be at: 19-Jan-2001 13:31
Thanks for trying! I already did the same test under NT, and have the same conclusion. Although it seems to work, could anybody describes REBOL's garbage management politic to me ? CU, chr==