memory not restored?

BlitzMax Forums/BlitzMax Programming/memory not restored?

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.

Maybe(?) FlushMem itself uses some memory, because adding it before the first MemAlloced gives the same numbers before and after loading/freeing the image:
Strict 
Global img:timage = Null
FlushMem
Print MemAlloced()
img:timage = LoadImage:timage(CurrentDir()+"/graphics/basic1.png")
Print MemAlloced()
img = Null
FlushMem
Print MemAlloced()