The use of DrawPixmap(or any other Functions) don't free it used temporary Memory !?
Strict
Graphics 800,600,0
Cls
SetColor 255,0,0
DrawOval 0,0,256,256
Local testpixmap = GrabPixmap(0,0,256,256)
Repeat
Cls
DrawPixmap testpixmap,100,100
DrawText "Mem Alloced: "+MemAlloced(), 10,10
Flip
'FlushMem()
Until KeyHit(KEY_ESCAPE)
Strict
Graphics 800,600,0
Cls
SetColor 255,0,0
DrawOval 0,0,256,256
Local testpixmap = GrabPixmap(0,0,256,256)
Repeat
Cls
DrawPixmap testpixmap,100,100
DrawText "Mem Alloced: "+MemAlloced(), 10,10
Flip
'FlushMem()
Until KeyHit(KEY_ESCAPE)