Out of memory
[1/4] from: louisaturk:eudoramail at: 9-Apr-2002 1:38
Fellow rebols, Several of you helped me write the following code to keep trying to ftp a page to a remote server until it suceeds: until [either error? try [write ftp://id:[password--ftp--website--com]/www/index.html read %webpage.html][print FTP Error: trying again ... false][true]] This works great most of the time, and has been a great help to me (for which I am very thankful to those of you that helped me). However, it seems that upon each try it uses a little bit more memory and does not release it. So, after a certain number of tries (quite a few as my computer has 512 Meg of RAM) the program crashes, giving an out of memory error message. Is there any way to release that memory to prevent a crash? Or is this perhaps a bug in Core 2.5 that could be fixed in 2.6? Louis
[2/4] from: anton:lexicon at: 9-Apr-2002 19:51
Yes, try recycle. Just use recycle without any refinements to do it straight away.
>> ? recycle
USAGE: RECYCLE /off /on /torture DESCRIPTION: Recycles unused memory. RECYCLE is a native value. REFINEMENTS: /off /on /torture -- Temporary internal feature Anton.
[3/4] from: al::bri::xtra::co::nz at: 9-Apr-2002 21:35
Try putting: recycle just before your 'print. Andrew Martin ICQ: 26227169 http://valley.150m.com/
[4/4] from: louisaturk:eudoramail at: 9-Apr-2002 11:36
Andrew and Anton, Thanks! The solutions are always so easy! You guys are great. Louis At 09:35 PM 4/9/2002 +1200, you wrote: