laptop and a wrench

Bug

Releasing memory pointing to a raster layer causes an error.

Last Published: June 30, 2020 ArcGIS Runtime SDK
Bug ID Number BUG-000114021
SubmittedMay 16, 2018
Last ModifiedJune 5, 2024
Applies toArcGIS Runtime SDK
Version found100.2.1
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusKnown Limit

Additional Information

The problem occurs when the raster dataset has been removed from the layer but the .NET garbage collection has not yet destroyed the raster object. To trigger the garbage collection in order to delete files, it may be necessary to call GC.Collect e.g.: ``` ... GC.Collect(); GC.WaitForPendingFinalizers(); GC.Collect(); try { if (File.Exists(tifFile)) { File.Delete(tifFile); } } catch (Exception e) { // TODO... } ... ```

Steps to Reproduce

Bug ID: BUG-000114021

Software:

  • ArcGIS Runtime 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