(03-14-2021, 12:53 PM)georgeo Wrote: Hi Boriel,
The <alloc.bas> is very useful. I've overloaded my printing routine, so it also prints the free heap space and maximum contiguous heap space in the corner of the screen. I can see that, with a 4kb heap, my free space hovers around the 4kb mark for most of the time, while my largest allocatable block drops to around 3.5kb over the course of the program.
For my other post, this suggests that the heap space is not the source of my out-of-memory problems ...
Thanks
If your heap never drops below 3k, for example, you could set the heap to just 1k and use those remaining 3k for anything else.