Another memory question

BlitzMax Forums/BlitzMax Beginners Area/Another memory question

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.

well... a few months ago I had an issue where I implemented Delete() and found it wasnt always getting called.

I cant seemt to find the thread but basically I was told that while a program is running then the garbage collector will call the Delete() method as it deletes objects.
When the programs ends then any remaining active objects and any that the garbage collector has not yet collected will just get deleted and the Delete() method for these objects is not called.

So... I guess in some cases when you program ends it might not actually free the memory you malloc'd.

Of course I could be wrong... I often am