Question on memory allocation

BlitzMax Forums/BlitzMax Beginners Area/Question on memory allocation

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.

Some memory is used in linking an integer handle to a type - release frees the memory used for that. I guess when you release the handle, you have cleared the only reference to to mytype it points to, so that can be freed too on the next flushmem. b is of type mytype - no integer handle - so no handle memory to reclaim. To free the memory pointed to by b, set b=Null and Flushmem.