laptop and a wrench

Bug

ArcMap crashes after successfully returning a call to ISchematicLayer.SchematicInMemoryDiagram.

Last Published: August 25, 2018 ArcObjects SDK
Bug ID Number BUG-000116318
SubmittedAugust 23, 2018
Last ModifiedApril 9, 2025
Applies toArcObjects SDK
Version found10.6.1
Operating SystemWindows OS
Operating System Version7.0 64 Bit
StatusKnown Limit

Additional Information

Wrong pattern used in the code. Please see the article below: https://support.esri.com/en/technical-article/000018520 Pattern to follow: public void Execute(ISchematicLayer schematicLayer, ITrackCancel CancelTracker) { if (schematicLayer == null) return; // Before Execute part ISchematicInMemoryDiagram inMemoryDiagram; inMemoryDiagram = schematicLayer.SchematicInMemoryDiagram; // Core algorithm InternalExecute(schematicLayer, inMemoryDiagram, CancelTracker); // Release the COM objects if (inMemoryDiagram != null) while (System.Runtime.InteropServices.Marshal.ReleaseComObject(inMemoryDiagram) > 0) { } while (System.Runtime.InteropServices.Marshal.ReleaseComObject(schematicLayer) > 0) { } }

Steps to Reproduce

Bug ID: BUG-000116318

Software:

  • ArcObjects SDK

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