Can an app dll (as opposed to a dll) have writeable static data?

Login to reply to this topic.
Thu, 2006-02-16 18:16
Anonymous
Forum posts: 2043
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?

Fri, 2006-02-17 09:06
Joined: 2004-06-08
Forum posts: 148
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.
Fri, 2006-02-17 09:30
Joined: 2005-07-10
Forum posts: 68
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.
  • Login to reply to this topic.