ArcMap crashes after successfully returning a call to ISchematicLayer.SchematicInMemoryDiagram.
上次发布: August 25, 2018ArcObjects SDK
漏洞 ID 编号
BUG-000116318
已提交
August 23, 2018
上次修改时间
April 9, 2025
适用范围
ArcObjects SDK
找到的版本
10.6.1
操作系统
Windows OS
操作系统版本
7.0 64 Bit
状态
Known Limit
经开发团队审核,已确定此问题与不受 Esri 控制的软件的已知限制有关。 问题的“其他信息”部分可能包含进一步说明。
附加信息
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) { }
}