laptop and a wrench

Bug

Parallel processing causes memory leaks when creating features using ArcObjects Geodatabase API.

Last Published: April 18, 2023 ArcObjects SDK
Bug ID Number BUG-000155519
SubmittedFebruary 1, 2023
Last ModifiedJune 5, 2024
Applies toArcObjects SDK
Version found10.8.1
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusNon-Reproducible

Additional Information

Within the UpdateFeatureClass method, the updated row 'updateR' is not being managed correctly, but can be corrected with the following two ReleaseComObject calls: if (!isPlotShapeSuccess) { if (updateR != null) Marshal.ReleaseComObject(updateR); return false; } //try to update all changes at once with all the updated info. update.UpdateRow(updateR); if (updateR != null) Marshal.ReleaseComObject(updateR);

Workaround

Within the UpdateFeatureClass method, the updated row 'updateR' is not being managed correctly, but can be corrected with the following two ReleaseComObject calls:

            if (!isPlotShapeSuccess)

            {

              if (updateR != null) Marshal.ReleaseComObject(updateR);

              return false;

            }

            //try to update all changes at once with all the updated info.

            update.UpdateRow(updateR);

            if (updateR != null) Marshal.ReleaseComObject(updateR);

Steps to Reproduce

Bug ID: BUG-000155519

Software:

  • ArcObjects SDK

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