When IMapEvents_Event version changes, it does not release reference to other version.
上次发布: August 25, 2014No Product Found
漏洞 ID 编号
NIM002374
已提交
May 4, 2006
上次修改时间
April 9, 2025
适用范围
No Product Found
找到的版本
9.1
编程语言
C#
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
No Public Explanation
解决办法
Need to explicitly release method parameters using marshal.releasecomobject. For each of the events(featureclasschange,versionchange,tablechange).private void MapEventsTestCommand_VersionChanged(ESRI.ArcGIS.Geodatabase.IVersion oldVersion, ESRI.ArcGIS.Geodatabase.IVersion newVersion) { Debug.WriteLine("VersionChanged","MapEventsTestCommand"); try { while(Marshal.ReleaseComObject(oldVersion)>0); while(Marshal.ReleaseComObject(newVersion)>0); } catch(Exception exc) { Debug.WriteLine(exc,"MapEventsTestCommand"); } }