Frequently asked question

Do I have to explicitly instantiate a singleton?

Last Published: April 25, 2020


Sometimes, when using the new keyword to instantiate a COM object, a reference to an object that already exists is returned. This happens when attempting to instantiate a singleton class that has previously been instantiated. The solution is to use the Activator class to safely wrap singleton objects in a strongly typed runtime callable wrapper (RCW), when a reference to them is first obtained.

Article ID:000009964

  • ArcGIS Engine

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options