Just to elaborate on ziggy's last sentences, you can not rely on your object being freed when you dereference it. The GC will pick it up and free it whenever it wants to...
The Delete method is called when the GC frees your object... this could happen straight away, or it might never happen... the GC knows when is the best time to free an object. So the Delete method must not be used for program critical stuff.
The Delete method is called when the GC frees your object... this could happen straight away, or it might never happen... the GC knows when is the best time to free an object. So the Delete method must not be used for program critical stuff.