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.
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.