PROBLEM

A workspace with a spatial cache can not be freed from memory

Last Published: April 25, 2020

Description

A workspace can not be freed from memory while it has a spatial cache containing references to features.

The spatial cache is also commonly called an edit cache.

Cause

The spatial cache contains features that have references to their workspace. The workspace can not be released while there are references to it.

Prior to 9.0, the spatial cache was only in the scope of an edit session and it was automatically cleared when stop editing was called on the workspace. However at 9.0, the spatial cache is maintained outside an edit session and the responsibility to clear the cache has been shifted to the user.

Solution or Workaround

Call ISpatialCacheManager.EmptyCache to empty the spatial cache prior to releasing all references to the workspace.

    Article ID:000006750

    Software:
    • ArcMap

    Get help from ArcGIS experts

    Contact technical support

    Download the Esri Support App

    Go to download options

    Discover more on this topic