>I have a main program that instantiates a class. That class contains various objects. What is the best way to clean-up all the references? This program is a service that starts on boot and remains running until PC shutdown or the service is terminated. What can I put in my program/classes to ensure I don't leave stuff hanging around? Per Cathy's suggestion, I'll set them to NULL after destroying them, but where best to do that?
I've just gave a reference to
Re: Automatic Destroy method Thread #
1246863 Message #
1247285 and you may review the whole thread.
If it's not broken, fix it until it is.
My Blog