Applying save edits on point feature class using Iworkspace Interface with"OnStopOperation" event causing ArcMap to crash.
上次发布: August 25, 2014ArcGIS for Desktop
漏洞 ID 编号
NIM078914
已提交
March 7, 2012
上次修改时间
June 5, 2024
适用范围
ArcGIS for Desktop
找到的版本
10.0
编程语言
C#
修正版本
N/A
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
附加信息
This is as designed and documented. Event handlers should never change the state of the editor.
解决办法
In the OnStopOperation handler call execute on the save edits command. Dim saveUID As UID = New UIDsaveUID.Value = "esriEditor.SaveEditsCommand"Dim pDoc As IDocument = m_application.DocumentDim pCommandbars As ICommandBars = pDoc.CommandBarsDim pSaveEditC As ICommandItem = pCommandbars.Find(saveUID, True, False)pSaveEditC.Execute()