Release, flushmem and other things that go bump in

BlitzMax Forums/BlitzMax Beginners Area/Release, flushmem and other things that go bump in

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Bon Jour,
I'm not sure I understand the function of the release and flushmem commands.
This it what I think I understand. If I am incorrect anywhere, please correct me. I woukd be ever so gratefull
DW

Release --> takes an item defined by an int and releases its alocated memory back to the system

Flushmem --> Takes objects which have no refrences IE Unused Timages and such and frees them from memory.

Is this about right?

Is there a way to release a single TImage?
for example this does not work:
Superstrict
Global image:TImage
...
image = grabimage(x,y,w,h)
...
release image

This will creat an errot that release can olby release Int's and not Timages. So how so you release a timage or other non Int object?
TIA
DW