laptop and a wrench

Bug

Repeated calls to ICommand::Refresh can crash ArcMap.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM007299
SubmittedMarch 9, 2007
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.0
Program languageVBA
StatusWill Not Be Addressed

Additional Information

No Public Explanation

Workaround

Changed VBA code to skip toolcontrol and menus as follows to retest: Dim pCmdItem As ICommandItem Dim i As Integer For i = 0 To pCmdBar.Count - 1 Set pCmdItem = pCmdBar.Item(i) If (pCmdItem.Type = esriCmdTypeCommand) Then If Not pCmdItem.Command is Nothing Then If Not TypeOf pCmdItem.Command Is IToolControl Then pCmdItem.Refresh End If End If End If Next iIt seems to work but occasionally ArcMap still crashes or disappears.- When current tool is on the toolbar to be refreshed- Refreshing the commands on standard toolbar

Steps to Reproduce

Bug ID: NIM007299

Software:

  • No Product Found

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