Re: static props and methods = global variables??

From: John Saunders (johnwsaundersiii_at_notcoldmail.com)
Date: 07/16/04


Date: Fri, 16 Jul 2004 11:49:55 -0400


"Daniel Billingsley" <dbillingsley@NO_durcon_SPAAMM.com> wrote in message
news:OCkv3U0aEHA.3988@tk2msftngp13.phx.gbl...
> I'd like to set (on launch) and then keep some AppDomain-wide variables.
>
> Is there anything "bad" with doing something like this (dumb example), or
is
> there another more "standard" way of accomplishing it?

Another question is modification. If the variables will never be modified
after initialization, then there's no problem. But if they can be modified,
then all access to the variables should be synchronized in case of access
from multiple threads.

-- 
John Saunders
johnwsaundersiii at hotmail


Relevant Pages

  • Re: Question about writing an ASF file
    ... > Do you launch any threads from your application, ... COM initialization is not suffucient. ... the result is twice as long and the sound plays back correctly ... I create an Audio profile 96KBit 44.1 KHz Stereo. ...
    (microsoft.public.windowsmedia.sdk)
  • Re: depend and launch in init registry
    ... Did you even look in the Platform Builder help? ... LaunchXX tells the order to launch these applications, ... > run after the video driver finishes its initialization. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Odd problem
    ... This sounds like an initialization problem in the component. ... initializes something and forgets to finalize it, so on next launch it tries ... and Im not really sure its an Indy issue this one. ...
    (borland.public.delphi.thirdpartytools.general)