Peter Carlsson napsal(a):

>Gregg Irwin wrote:
>  
>
>>Hi Peter,
>>
>>PC> I have noticed that if I execute a script repeatedly
>>PC> I will eventually ran out of memory. I have seen this
>>PC> for REBOL/Core on both Linux and Windows and with
>>PC> different versions.
>>
>>PC> I am almost certain that it has to do with my script
>>PC> and the way REBOL allocate memory for variables. What
>>PC> should I do in my script to clean up before exit?
>>
>>Can you provide more information about what your script does? Hard to
>>say otherwise.
>>    
>>
>
>Well, it actually is a big program which creates a few
>but big lists of text strings. These lists are initially
>cleared with 'a-list: copy []'. Is there a better way?
>I thought that this would clear any old values and free
>that memory.
>
>Maybe I should do like Sunanda suggested in a previous
>email.
>
>Could I use 'context' for this purpose?
>
>Best regards,
>Peter Carlsson
>  
>
Hi Peter,

actually I am sure, that there is nothing wrong with (a-list: copy []). 
It should be sufficient to free previously allocated space for A-LIST.

RECYCLE is not meant to be used regularly by users, because the Garbage 
Collector runs automatically. The best what you can do is to create a 
simplified version of your script running out of memory, which might 
reveal a bug either in your code or in the interpreter.

-L
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to