laptop and a wrench

Error

Using IDataset::Delete on a TIN after using IMap::DeleteLayer will result in a file share violation error, but then partially delete the TIN from the disk.

Última publicación: August 25, 2014 No Product Found
Número de ID del error NIM003263
EnviadoJuly 6, 2006
Última modificaciónJune 5, 2024
Relacionado conNo Product Found
Versión encontrada9.1
EstadoNon-Reproducible

Información adicional

No Public Explanation

Solución alternativa

Instead of using IMap::DeleteLayer use IRemoveLayerOperation instead.==========================Sub RemoveLayer()Dim pMxDoc As IMxDocumentDim pMap As IMapDim pLayer As ILayerDim pRemoveLayerOperation As IRemoveLayerOperationDim pOp As IOperationSet pMxDoc = ThisDocumentSet pMap = pMxDoc.FocusMapSet pLayer = pMap.Layer(0)Set pRemoveLayerOperation = New RemoveLayerOperationpRemoveLayerOperation.Map = pMappRemoveLayerOperation.Layer = pLayerSet pOp = pRemoveLayerOperation<a href="http://pOp.Do" target="_blank">pOp.Do</a>pMxDoc.ActiveView.RefreshEnd Sub===========================***Or****Delete the layer with the geoprocessor Delete (Management) tool.=====================Dim gp As ObjectSet gp = CreateObject("esrigeoprocessing.gpdispatch.1")gp.AddToolbox "<a href="file:C:/program" target="_blank">C:\program</a> files\arcgis\arctoolbox\toolboxes\data management tools.tbx"gp.Delete_management "<a href="file:c:/temp/tin" target="_blank">c:\temp\tin</a>", "<a href="file:C:/Temp/tin" target="_blank">C:\Temp\tin</a>"=====================

Pasos para reproducir

ID del error: NIM003263

Software:

  • No Product Found

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga