I know WSD(Writable Static Data) is an issue with DLL and EXE, and 9.1 onwards WSD is supported for DLL and EXE albiet at programmers descrition. But how about WSD in static libraries, is it allowed/ or is there any issue with WSD with static libraries also?
Coz when I put static data in my lib, the code compiles fine but i get linking errors saying undefined identifiers. So I am wondering if i am doing something wrong.
Also for Singleton PAttern Symbian recommends 2 approachs :-
1) Either use TLS to implement the Singleton class or
2) Use CCoeStatic to implement a Singleton class.
http://ncsp.forum.nokia.com/download/?asset_id=12510
I want to know the pros/cons of both the approaches vis-a-vis the other. And when to use which approach. For instance if I have an exe which links to a static library which in turn links to another static library. And both these static libraries contain singleton classes then which of the above 2 to use and why.
Also I know DLL's are the recommended way to go forward but what if I still want to use static libraries..then which is better?
Cheers
mayank



Reply With Quote

