Hi!
Simple as that:
1. I load an image
2. Set it = NULL
3. Flushmem()
4. Goto 1.
This creates a memory leak... why?
Simple as that:
1. I load an image
2. Set it = NULL
3. Flushmem()
4. Goto 1.
This creates a memory leak... why?
Incbin "gfx/back.png" Graphics 640,480 While Not KeyHit(KEY_ESCAPE) Cls image:TImage = LoadImage("incbin::gfx/back.png") DrawImage image,0,0 DrawText MemAlloced(),100,100 Flip image = Null FlushMem() Wend
Incbin "gfx/back.png" Graphics 640,480 While Not KeyHit(KEY_ESCAPE) Cls image = LoadImage("incbin::gfx/back.png") DrawImage image,0,0 DrawText MemAlloced(),100,100 Flip Release image FlushMem() Wend