On Thu, Feb 24, 2005 at 04:29:16PM -0500, Paul Davis wrote: > >> 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? Well, in this case, the host does the final release. Example: You want to unload a DLL. You've destructed any plugin instances. You can then destruct the factory and release the DLL. ---------------------------------------------------------------------- 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