Daniel Kirsch wrote:
null is still a value. oVar will not be deleted but will have the value null.
Right. But the object is not referenced anymore, so the next garbage collection (GC) run will delete it and call the destructor (assuming there are no other references, of course).
To delete a variable use the delete operator: delete oVar; this should call your destructor.
No, it shouldn't. That will just undefine the variable. It should have zero effect on when the destructor will be called.
smime.p7s
Description: S/MIME Cryptographic Signature
