Re: When to use Environment Variables?

From: Norm Dresner (ndrez_at_att.net)
Date: 02/24/04


Date: Tue, 24 Feb 2004 01:41:21 GMT


"Mark" <mark_2811nospam@excite.com> wrote in message
news:FGu_b.117$mx4.3945@nnrp1.uunet.ca...
> Hi,
>
> I'm developing an application (embedded) that needs some configuration
> setting to be loaded on startup. The way I've usually done this before is
a
> custom formatted configuration file that the applications reads on
startup.
> I'm wondering if using the environment variables would be a better way?
> When are environment variables preferred over a configuration file?
>
> I'd like most settings to be loaded one time at startup, but also have
some
> settings that can be changed during runtime, without stopping and
restarting
> the application. Is this something that environment variables can help me
> to do?
>
    No. As I understand it, a program receives a copy of the current
environment when it starts. Any subsequent changes will not be reflected in
a running program. But you could use shared memory and have a utility
program which can read/write data into and from it to communicate with the
running program

    Norm



Relevant Pages

  • When to use Environment Variables?
    ... custom formatted configuration file that the applications reads on startup. ... I'm wondering if using the environment variables would be a better way? ... I'd like most settings to be loaded one time at startup, ...
    (comp.os.linux.development.apps)
  • Re: Weird Firefox Startup Behavior : Multiple Tabs
    ... Firefox will startup with multiple tabs open if that's how you ... Check the startup page in your configuration ... settings. ... then bingo. ...
    (comp.sys.mac.apps)
  • Re: Starp up sequence
    ... >> RunServicesOnce ... >> User Profile Startup Folder ... >> the programs specified in the Computer Configuration setting just before ... >> AppInit_DLLs Registry value. ...
    (microsoft.public.windowsxp.customize)
  • RE: programs in tray
    ... Microsoft Windows XP by using the System Configuration utility ... Programs that are set to load during the startup process (these programs ... permanently deletes all restore points for the System Restore utility. ...
    (microsoft.public.windowsxp.customize)
  • Re: appsetting in class doesnt work
    ... an appsettings section. ... <!-- This section defines the logging configuration for ... Dim cnfg As System.Configuration.Configuration ... settings enter in the designer. ...
    (microsoft.public.dotnet.languages.vb)