gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-dev] singleton vs. static globals


From: strk
Subject: [Gnash-dev] singleton vs. static globals
Date: Thu, 29 Jun 2006 02:22:18 +0200

[gnash-dev included]

Vitaly, I finally turned SWFHandlers in a singleton.
Does it fix the initialization order ?
I'm now (after last huge commit) having problems 
of statics again (segfault on finish) should we take
the singletons path ?

--strk;


On Wed, Jun 21, 2006 at 05:55:06PM +0400, Vitaly Alexeev wrote:
> strk <address@hidden> wrote:
>    
>   >Vitaly, what was wrong with keeping SWFHandlers static
> >initializers in the swf/ASHandlers.cpp file, where the
> >rest of the class is defined ?
> >Isn't the compiler able to initialize statics in the correct
> >order ?
>    
>   Hi, 
>    
>   I did so, because
>   VC++ compiler initialize statics in the different order than GNU C++ 
> compiler
>    
>   Vitaly.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]