> The fun part is, when the program finishes consuming all the memory, > FREE_MEM actually goes negative, to -512, and the program manages 20 more > loops before generating an out of memory error. > This is probably because SBasic has already reserved space for itself before the available memory runs out and doesn't need to get more at first. But, after 20 more iterations, it needs more memory for itself, tries to get it and throws the OOM error. (FREE-MEM doesn't show how much mem the basic interpreter still has, just the generally available memory).
Wolfgang _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm