>> When does that object get deleted? > >When the refcount hits 0. It doesn't have to be function-scoped, it could >easily be file scoped, so the ::Release method has direct access. what does the final release? do you really want to delete the singleton when the last plugin instance is deleted, or when the dll is unloaded? ---------------------------------------------------------------------- Generalized Music Plugin Interface (GMPI) public discussion list Participation in this list is contingent upon your abiding by the following rules: Please stay on topic. You are responsible for your own words. Please respect your fellow subscribers. Please do not redistribute anyone else's words without their permission. Archive: //www.freelists.org/archives/gmpi Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe