PROBLEM
When trying to execute any of the Spatial Analysis or 3d Analyst tools, an error message occurs and ArcMap or ArcCatalog exits with either a "referenced memory" error or an "ArcMap.exe" error.
This is due to a corrupt temporary directory or scratch workspace.
These tools write temporary rasters to the scratch workspace and default workspace. If no temp or scratch workspace are specified in Environment Variables, these files are written to the TEMP folder specified in the user's environment variables. If this folder becomes too full, i.e., it has too many files and folders, or is corrupted, this can cause the process to fail.
Article ID:000008415
Get help from ArcGIS experts
Download the Esri Support App