handles and variables

Blitz3D Forums/Blitz3D Beginners Area/handles and variables

The variable is to be compared with a pointer... It doesn't contain the data itself, only the address of the memory bank it's stored in...

That's how it works...


To get this in further technobabble
G = LoadImage("Pic1")
G = LoadImage("Pic2")

In this code, the second command doesn't overwrite the first loaded pic... Only the var that points to the memory, making that the first pic is still in the memory, but no longer accessible since the address is lost... (We got the command FreeImage to cover that problem)...


But to keep things relevant, the picture is stored in a memory bank and the variable only contains the memory address of that bank...