epoc environment variables

Login to reply to this topic.
Sun, 2008-02-03 22:25
Joined: 2007-08-08
Forum posts: 2

Is it possible to create own user environment variables in the emulator (like you do in Unix/DOS/Windows)? If answer is yes, is it possible to set these at commandline or in epoc.ini?

...
What I want to do is to create a "global" variable available to all processes. I would use this variable to determine execution mode for these processes (servers).

I was thinking of something like this:
epoc -myenv TestMode=1

...or in worst case some key/value in epoc.ini

A more complicated way is to create a .ini file somewhere in the epoc filesystem that can be read by all processes that needs it. ...but I was hoping for a better solution.


Mon, 2008-02-04 11:17
Joined: 2004-05-24
Forum posts: 981
Re: epoc environment variables

Why not use publish and subscribe or central repository ? (as the answer to your question is no)


pirosl

Mon, 2008-02-04 11:56
Joined: 2004-11-29
Forum posts: 1156
Re: epoc environment variables

Yes.. use P&S

You could see P&S as "environment variables on steroids".

They provide the same functionality as environment variables, but are a lot more efficient, plus they can be observed, and they take predictable time to set, so usable for RT applications.

Mon, 2008-02-04 14:43
Joined: 2007-08-08
Forum posts: 2
Re: epoc environment variables

Thanks for your answers. I will probably get use of publish & subscribe.

If I've understood RProperty correctly it's mainly for communicating between processes and is created at runtime. However since I'm not in control of the startup order of the various servers (some of them could be launched at system-boot) therefore this "property/variable" needs to be set before everyting starts.

Why not use publish and subscribe or central repository ? (as the answer to your question is no)

I'm not sure how Central Repository works but isn't it limited to a specific UID (I'm writing a .dll invoked by different servers)? And is it even possible to edit central repository from Windows/DOS?

  • Login to reply to this topic.