A DLL can't contain writeable static data, however an app (prior to 9.x) is a dll but runs in its own process space -apprun.exe. Can an app dll therefore contain writeable static data? If not why not?
Re: Can an app dll (as opposed to a dll) have writeable static d
The answer is no. You should be able to find lots of documents about this problem in the web. But there si a workaround for it. You have to use thread local storage(TLS). Try to find an example. If you still have problems ask again and I will send you one myself.
Re: Can an app dll (as opposed to a dll) have writeable static d
I think Dll class will accomplish the task. Check out the doc file in
Developer Library » API Reference » C++ API reference » Threads and Processes » Dll
 
Fri, 2006-03-03 21:16
Guest (not verified)
Forum posts: 2043
Re: Can an app dll (as opposed to a dll) have writeable static d
Actually I didn't phrase my question very clearly. I was asking hypothetically i.e. could Symbian have implemented some mechanism whereby the app is allowed to have writeable static data (maybe indirectly as opposed to directly) due to the fact that it actually runs within a process.
Forum posts: 148
Forum posts: 68
Developer Library » API Reference » C++ API reference » Threads and Processes » Dll