[gmpi] Re: Linux C++ question

>Cheers Paul,
>
> >  foo_is_a_singleton = new SomeObject();
>
>2nd question.  Does GMPI therefore need a function..
>
>  PreDllUnload()
>
>to support the destruction of such singletons?

thats a good question. obviously, the objects can't be destroyed in a
plugin destructor. 

tough call. we could choose to rely on the existence of a standard
mechanism, and say nothing more about static objects, other than to
note that platforms must support them.

we might get more portability (slightly) if we did in fact have a
PreDLLUnload() method.

anybody else?

--p

ps. to stress again: the issue Tim was having was caused by a mismatch
between the mechanism his compiler was using and the one supported by
his C/C++ runtime environment. this sort of clash was anticipated by
the C++ standards committee, and I am not sure we are obliged to do
much about an issue that was "settled" almost 5 years ago.

----------------------------------------------------------------------
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: http://www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe

Other related posts: