Here is an example. But when looking closer it has all to do with the lockimage. Did i do something wrong here?
Graphics 320,240,0
Local test:timage
Repeat
test:timage=CreateImage(32,32)
pix=LockImage(test)
UnlockImage(test)
FlushMem
Flip
Print MemAlloced()
WaitKey
Until KeyDown(key_escape)