It just takes some time to update the amount of memory allocated.
Try this one with waitkey.
The longer you wait before pressing a key the more memory is allocated. (until it allocates about 12000 bytes) Remove waitkey and it says nothing is allocated.
Try this one with waitkey.
The longer you wait before pressing a key the more memory is allocated. (until it allocates about 12000 bytes) Remove waitkey and it says nothing is allocated.
Graphics 640,480,0 GCCollect() Print "Initial Memory = " + GCMemAlloced() Local a[10000] WaitKey() GCCollect() Print "Memmory After = " + GCMemAlloced()