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 3228986
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:45:28+00:00 2026-05-17T16:45:28+00:00

1) .NET Assembly MyAssembly.dll implements a Singleton class MyClass 2) A .NET APP has

  • 0

1) .NET Assembly MyAssembly.dll implements a Singleton class MyClass

2) A .NET APP has a reference to MyAssembly.dll and uses MyClass

3) A .NET ActiveX MyActiveX.dll implements a COM Visible class wich in turn references to MyClass in MyAssembly.dll

My question is: if the app and the ActiveX are running at the same time (the ActiveX in a web page), do I have one or two instances of MyAssembly.dll loaded? I need it to be one instance for the singleton to work.

Thanks

  • 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-05-17T16:45:28+00:00Added an answer on May 17, 2026 at 4:45 pm

    The assembly is loaded into the Application Domain, static fields (where the singleton is based on) are instantiated per Application Domain. There is at least one App Domain per process, so you get at least one instance per process.

    Your ActiveX component is instantiated in another process then the .NET Application. You don’t get shared memory.

    To instantiate the singleton only once, you need to start a single process and access it remotely. You could achieve this by the use of remoting, DCOM, WCF or something like this. You need to make sure that both process access the this instance.

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

Sidebar

Related Questions

I have a .net assembly that has a COM+ ServicedCopmonent in it and at
We're using our .NET Assembly DLL within native C++ through COM (CCW). Whenever I
Is it possible to reference a .NET Assembly from a SQL Server Stored procedure
I have a .NET assembly that contains classes to be registered as ServicedComponent through
For a .NET assembly to allow anything other than fully trusted callers the assembly
When I try to run a .NET assembly ( boo.exe ) from a network
I have a third party .NET Assembly and a large Java application. I need
I'm trying to use a .NET assembly from VB6 via interop without placing it
We're trying to track down some .Net assembly dependency problems. On Windows XP, does
Does the size of a .net assembly affect performance at all? How about the

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.