All images not accounted for...

BlitzPlus Forums/BlitzPlus Programming/All images not accounted for...

>Andy A

No, I don't use a function. I ran a little tes program to see what happens to images when you delete them, and I think it's pretty conclusive that there's images floating about in my game undeleted. The routine's as follows:
Graphics 800,600

firstvidmem=AvailVidMem()

timer=CreateTimer(15)

While Not KeyDown(1)
Color 255,255,0
WaitTimer timer

image1=LoadImage("image.png")
If KeyDown(28)=1 Then FreeImage image1 : image1=0

images=images+1

Print images
vidmem=AvailVidMem()
Print vidmem

Wend 
End

If you hold down enter, you see that the memory stays the same, because it is loaded and then deleted. Therefore, it means that I have images floating around that I haven't found.

I've tried setting the handles for the graphics as all global and seeing if they come up in the debug sidebar in the IDE, but all the images come up as 0. I can't find a single one that doesn't come up as 0 - even the ones that I've loaded and not deleted! This could be a solution, but I don't know what I'm doing wrong. Thanks so far. Any more ideas?