laptop and a wrench

Bug

Custom graphic element code crashes ArcMap at ArcGIS 10 SP3 on call to IActiveView.PartialRefresh - same code works successfully at ArcGIS 10 SP2.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM074715
SubmittedOctober 27, 2011
Last ModifiedApril 28, 2025
Applies toNo Product Found
Version found10.0
Program languageC#
StatusDuplicate

Additional Information

NIM074919

Workaround

In order to work with SP3, add the IGraphicsComposite and IEnumElement interfaces to you custom element class: Example implementation: #region IGraphicsComposite Members public IEnumElement get_Graphics(IDisplay Display, object Data) { return this; } #endregion #region IEnumElement Members private int enumIndex = 0; public IElement Next() { if (enumIndex == 0) { enumIndex++; IElement element = new PolygonElementClass(); element.Geometry = m_customElement; return element; } throw new COMException("Iterator End", 1); return null; } public void Reset() { enumIndex = 0; } #endregion

Steps to Reproduce

Bug ID: NIM074715

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