[gmpi] Re: Linux C++ question

  • From: Paul Davis <paul@xxxxxxxxxxxxxxxxxxxxx>
  • To: gmpi@xxxxxxxxxxxxx
  • Date: Thu, 24 Feb 2005 16:42:45 -0500

>> 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.

which is semantically equivalent to Jeff's suggestion of a
PreDLLUnload function, except that you are now tying it to the
factory. That might be OK, it might not. Right now, there is no
proposal for factory destructor, which is where the release of any
internally constructed singletons would have to be done. At least, not
that I recall.


----------------------------------------------------------------------
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

Other related posts: