Automatically Reclaiming Resources

The MTS Executive notifies DispMan each time an object's lifetime ends. DispMan then notifies each registered resource dispenser's holder to verify if it has any resources still held by this instance. If so, the resource is freed, thus preventing the possibility of resource leaks by components that get resources through a resource dispenser.

The auto-reclamation feature is an option that is turned off by default. A resource dispenser can choose to enable this option and, in doing so, guarantees that a reference to any resource dispensed to an object will never be passed out of the object.