laptop and a wrench

Bug

Custom Map Surround Frames crash ArcMap in Version 10.0 SP 3 in the IElement.Draw() method. With 10.0 SP 2, the code works fine to add a north arrow map surround.

Last Published: August 25, 2014 ArcGIS for Desktop
Bug ID Number NIM075178
SubmittedNovember 9, 2011
Last ModifiedJune 5, 2024
Applies toArcGIS for Desktop
Version found10.0
Program languageVC++
Operating SystemWindows OS
Operating System Version7 64 Bit
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: NIM075178

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