The dangers of automatic GC mode

BlitzMax Forums/BlitzMax Programming/The dangers of automatic GC mode

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.

Leadwerks, you are using the Delete method to remove another instance of an object. That is your mistake. The Delete method is called when the GC happens to clean the object, not immediately. Never expect the Delete method to clean up other objects for you in a timely manner.

If you want it to happen like that, then you are going to need a method in the Foo to call, to have it cleanup its Things, before you let it go out of scope.

This is not a bug, you are just using the Delete method to do something it is not designed to do. You want it to fire immediately, and it does not.