Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Category:
Object Oriented Programming
>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 like to have the Destroy method of the containing object call a custom CleanUp method to do this.
Tamar
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only