Singleton Class

Login to reply to this topic.
Mon, 2008-05-12 11:34
Joined: 2007-06-28
Forum posts: 17


Hi All,
I am using Dll::SetTls and Dll::Tls() for the singleton class, and using edllstub.lib
library against this. But, when I am using edllstub.lib , I am getting __E32Dll not found.

When I am m not using this edllstub.lib , getting Dll::SetTls and Dll::Tls() as undefined reference.

I am looking forward for your quick response.

Regards,
Zahid


Mon, 2008-05-12 13:11
Joined: 2003-12-05
Forum posts: 586
Re: Singleton Class

If you are working with an exe (v9 application, console or server), there is no DLL TLS (thread local storage), since you are not building a dll. Thus no E32Dll entry point function, no TLS.

What is your binary like? There are other ways of implementing singletons, see here: http://developer.symbian.com/main/documentation/code_clinic/clinic_march_2008.jsp

Mon, 2008-05-12 13:15
Joined: 2007-06-28
Forum posts: 17
Re: Singleton Class

Hi,
Thanks for yur reply, but I am using in the Dll.

Regards,
Zahid

Mon, 2008-05-12 14:01
Joined: 2003-12-05
Forum posts: 586
Re: Singleton Class

And in v9 the dll entry point function is not used either in dlls. So just get rid of that function (or put it under conditional compilation if platform version is under v9).

  • Login to reply to this topic.