Very Careful Tracking of Configurations and Appropriate Deallocation

If you are sure you want to use the inheritance/pointer approach, there are other ways you may think of to make sure that you deallocate every configuration that you allocate.

To see if your approach is successful, you may want to include as an attribute an instance of the Watcher class, found in the CS4 pub directory.

For the truly daring and ambitious, you could define your own memory manager and define custom versions of new and delete in your configuration class. See "Overloading New & Delete" in Chapter 13 of Volume 1.