Hello,
I have an extension for arcgis desktop (works on versions 9.1, 9.2,9.3) written in c#
One of its functions receives (IApplication app) as an argument and requests esri's extensions status:
IExtension ext = app.FindExtensionByCLSID(uid);
if (ext != null && ((IExtensionConfig)ext).State == esriExtensionState.esriESEnabled)
......
The problem is that sometimes (only sometimes) FindExtensionByCLSID crashes with the following message:
System.Runtime.InteropServices.COMException (0x80010105): The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
at ESRI.ArcGIS.Framework.IApplication.FindExtensionByCLSID(UID extensionCLSID)
Can anyone explain why this happens (under what conditions) and how can I avoid it?
Thanks,
Rachel