If i have a class with a global object in it, is this object destroyed when the class instance is destroyed?
Printable View
If i have a class with a global object in it, is this object destroyed when the class instance is destroyed?
I couldn't say for certain (run a test) - but you should destroy the object manually in the _Terminate event of the class nonetheless - it's just good housekeeping.