laptop and a wrench

Bug

Interacting with the Utility Network toolbar crashes the ArcMap application if a custom or an existing command is programmatically added to the toolbar.

Last Published: August 25, 2014 ArcGIS for Desktop
Bug ID Number NIM047024
SubmittedJuly 23, 2009
Last ModifiedJune 5, 2024
Applies toArcGIS for Desktop
Version found9.3.1
Program languageC#
Operating SystemWindows OS
Operating System VersionXP
Version Fixed10.0
StatusFixed

Workaround

A workaround to this problem is to ensuring in the code that the Utility Network Analysis Extension is started before finding the toolbar and adding the command.Here is the code that will do this: void OnInitialized() { this.m_UtilityNetworkToolbarUID = (m_application as IObjectFactory).Create("esriSystem.UID") as UID; this.m_UtilityNetworkToolbarUID.Value = "esriEditorExt.UtilityNetworkToolBar"; this.m_UtilityDetermineClientsAndValvesUID = (m_application as IObjectFactory).Create("esriSystem.UID") as UID; this.m_UtilityDetermineClientsAndValvesUID.Value ="{8603563F-D907-4271-BDC2-9160C6FDA123}"; UID extUID = new UIDClass(); extUID.Value = "esriEditorExt.UtilityNetworkAnalysisExt"; object obj = new object(); IExtensionManagerAdmin pExtAdmin = new ExtensionManagerClass(); pExtAdmin.AddExtension(extUID, ref obj); CheckMenuValidity(); }

Steps to Reproduce

Bug ID: NIM047024

Software:

  • ArcGIS for Desktop

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options