laptop and a wrench

Bug

When IMapEvents_Event version changes, it does not release reference to other version.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM002374
SubmittedMay 4, 2006
Last ModifiedApril 9, 2025
Applies toNo Product Found
Version found9.1
Program languageC#
StatusWill Not Be Addressed

Additional Information

No Public Explanation

Workaround

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"); } }

Steps to Reproduce

Bug ID: NIM002374

Software:

  • No Product Found

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