Re: How are static variables handled in asp.net

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Frank Mamone (frankmnospam_at_canada.com)
Date: 09/09/04


Date: Thu, 9 Sep 2004 14:14:10 -0400

How do you use static variables?

Is that like global variables that are always available?

-Frank

"Frank Wisniewski" <fpw23@hotmail.com> wrote in message
news:414099bb_1@Usenet.com...
> I use static variables in my asp.net apps instead of application variables
> to store global parameters, its worked well for me so far but I was
> wondering if it is efficient. Does anyone know how static variables are
> handled in asp.net?
>
> --
> Frank Wisniewski MCSE 4.0, MCP+I, A+
> f p w 2 3 @ h o t m a i l . c o m
>
>



Relevant Pages

  • Re: static and globals in a thread environment
    ... you NEVER use a static variable inside a working thread function. ... exceptions, it should not be used (in more than a decade of thread programming, I have ... functions), or pseudo-const global variables (once written, before the threads start, they ... Why do you think you need global variables or static variables at all? ...
    (microsoft.public.vc.mfc)
  • Re: Appdomains and mixed mode assembly
    ... |> instance of this class in other appdomain, then the global variables ... Not so for native static variables. ... True for pure managed assemblies but not for native code global statics, ... these have process scope not domain scope. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: handling static variables in parallel code
    ... just the same as global variables can. ... related to one instance of an object, and somehow the thread gets passed ... Wish the scope of thread-specific data was limited ... similar to the scope of static variables. ...
    (comp.programming.threads)
  • Re: static and globals in a thread environment
    ... There is a __declspecdeclaration that makes apparently-static ... Why do you think you need global variables or static variables at all? ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)
  • Re: How do the compiler knows about the change that is made in the static variable?
    ... the values of global variables. ... The only thing that is different is that the *name* of the storage has a limited scope. ... you can think of a static variables as a hybrid between a global variable and a local variable. ...
    (comp.lang.c)