Do you know what is the good method to clean the memory in HTbasic ?
ALLOCATE and DEALLOCATE seem to create an error after some time in program like if the memory are saturated (ERROR 2 Memory overflow)
I do not have a specific answer to your quest about clearing memory. I solve most of my memory problems by specifying more memory to be allocated as Basic is starting. For example I use “C:\Program Files (x86)\HTBwin10\HTBwin.exe” -w 128m in the properties /shortcut window. The -w 128m starts Basic with 128Meg of memory to operate in (a lot more than the default amount). Perhaps you know this already and are working with huge data structures…someone with more experience than I might know how to recover memory dynamically.