From the manual:
Also, MemAlloced and program initialization itself uses memory, try:
Function MemAlloced() Memory currently allocated by application
Returns: The amount of memory, in bytes, currently allocated by the application
As opposed to say "Ammount of memory used by your variables". You'll notice that your code reports different results depending on whether it's running in debug or not.Returns: The amount of memory, in bytes, currently allocated by the application
Also, MemAlloced and program initialization itself uses memory, try:
FlushMem() Print MemAlloced() FlushMem() Local a:Int = 34 Print MemAlloced()