laptop and a wrench

漏洞

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

上次发布: August 25, 2014 ArcGIS for Desktop
漏洞 ID 编号 NIM047024
已提交July 23, 2009
上次修改时间June 5, 2024
适用范围ArcGIS for Desktop
找到的版本9.3.1
编程语言C#
操作系统Windows OS
操作系统版本XP
修正版本10.0
状态Fixed

解决办法

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(); }

重现步骤

漏洞 ID: NIM047024

软件:

  • ArcGIS for Desktop

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项