Got it, thanks, I changed the instance method to:
[code]
        static Singleton * instance()  {
                if ( s is null )
                        s = new Singleton( 0 ) ;
                return s ;
        }
[\code]

and everything works as expected.

Cheers, PP !

Reply via email to