Integer Memory

BlitzMax Forums/BlitzMax Beginners Area/Integer Memory

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.

From the manual:
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.

Also, MemAlloced and program initialization itself uses memory, try:
FlushMem()
Print MemAlloced()
FlushMem()
Local a:Int = 34
Print MemAlloced()