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

[REBOL] R: Please, help me finding the memory hole

From: gchillemi::aliceposta::it at: 4-Dec-2007 10:57

> > Hello, I have a little script which is able to halt Rebol > on an "Append" > > with an "Out of Memory Error". > > Are you appending to a string? How long is the string? (Seems > 8MB from the stats but I'd like you to confirm.) How much > free memory do you actually have? Can you reproduce it with a > simple script?
Gabriele, thanks, it seems I have found the bug ant it is script related. The program searches for news on a internet site. I was appending two nested temporary blocks without clearing them after the loops. First loop size was: "block1size = block1size + pagefounds" instead of block1size = pagesfounds Second loop size was: "block2size = block2size + block1size" instead of block2size = block1size Without clearing block1 and block2 after their use the memomy numbers become huge (about 180.000 items in block2) Now I am testing the script reading 2000++ pages with 15 news in each page (about 30.000 items) but I suppose there shoud be no problems. Then will come another script which will read the contend of those news. I suppose I'll have again a memory problem but then it will be real and I will not be able to solve it and I will have to change the script flushing data found on a temporary disk file. Giuseppe Chillemi