laptop and a wrench

Bug

Implementing IObjectClassEvents in .NET results in versions that can't be deleted (version locked) after editing stopped and switching back to DEFAULT version.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM004409
SubmittedSeptember 27, 2006
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.2 Pre
Program languageC#
StatusDuplicate

Additional Information

NIM002352

Workaround

Fully release com object in overridden methods.Example of the overridden OnCreate method of IObjectClassEvents in C#:Will not reproduce: public void OnCreate(IObject obj) { //Do something //explicitly release com object holding reference to version (workspace) Marshal.ReleaseComObject(obj); obj = null; MessageBox.Show("ReleaseComObject + Null"); }Original work around:Implement IObjectClassEvents in VB6 or C++

Steps to Reproduce

Bug ID: NIM004409

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