Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8600121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:32:47+00:00 2026-06-12T01:32:47+00:00

Have a question about static classes/variables and DLL versions. If I have a static

  • 0

Have a question about static classes/variables and DLL versions.

If I have a static variable in a DLL (Version 1) and I load it into the GAC, then create a newer version of the DLL (Version 2) and load it into the GAC, when either version is called will it refer to the same variable in memory?

Example:

  • Client 1 sets a static variable IsAuthenticated = True in Version 1 of the DLL.
  • Client 2 gets the value of the same static variable (IsAuthenticated) however its referencing Version 2 of the DLL.

The namespaces are the same.

Will/Should IsAuthenticated be True when Client 2 calls it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T01:32:49+00:00Added an answer on June 12, 2026 at 1:32 am

    No, each (version of a) DLL has its own copy of all static variables even if both DLLs are loaded into the same process. Sharing memory across processes like that (that’s my interpretation of the question) would be not only a technical nightmare but also a very bad idea.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a Ruby newbie. Have a very basic question about static and instance variables.
I have a question about making static libraries that use other static libraries. I
I have a general question about the new Django 1.3 static file framework. I
I'm new to OOD so I have a question about the use of classes
I have two questions about static + const members and static classes. One: Why
I have a question about coding practice. I want to create a class which
I have a (somewhat) simple question about android. I have some classes that contain
I have question about parsing in Html helper : I have sth like: @foreach
I have question about clean thory in Python. When: @decorator_func def func(bla, alba): pass
I have question about XSLT1.0. The task is to write out in HTML all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.