Understanding Blitz Memory Thread

BlitzMax Forums/BlitzMax Programming/Understanding Blitz Memory Thread

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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.
Graphics 640,480,0

GCCollect()
Print "Initial Memory = " + GCMemAlloced()

Local a[10000]

WaitKey()

GCCollect()
Print "Memmory After = " + GCMemAlloced()