frank_mclean

RasterIO.dll stack dump when deleting a raster file on disk with .Delete() - C#

Discussion created by frank_mclean on Jul 26, 2011
Latest reply on Oct 12, 2011 by pedodds
Hi,
I have migrated our Desktop extension from 9.3 to 10 - C# using VS2008, deployed on Windows XP Pro, SP3.  I am getting the following crash, when the software tries to delete a raster file on disk using .Delete():

Problem signature:
  Problem Event Name: BEX
  Application Name: ArcMap.exe
  Application Version: 10.0.2.3200
  Application Timestamp: 4d9bad9f
  Fault Module Name: RasterIO.dll
  Fault Module Version: 10.0.2.3200
  Fault Module Timestamp: 4d9b750a
  Exception Offset: 00035690
  Exception Code: c0000409
  Exception Data: 00000000
  OS Version: 6.0.6002.2.2.0.272.7
  Locale ID: 1033
  Additional Information 1: f3fb
  Additional Information 2: 76cb28eb10e2a4f22903a981f9d7609e
  Additional Information 3: 39e6
  Additional Information 4: e6c1cee561b673e1a7d4d2f425db536e

Searching the forums, it looks like a similar problem has been reported when there are spaces in the raster path - in this case there are definitely not.  The odd thing is that the crash happens after a call to .CanDelete() is successful:

IRasterDataset rasterDS = this.openRasterDataset(); 
IDataset dataset = rasterDS as IDataset; 
if (dataset != null)
{
      if (!dataset.CanDelete())
     {
           return false;//can't be deleted
      }
      dataset.Delete();


The crash happens during the .Delete() call.

Can anyone please help?  I can't trace this any further.

Thanks,
Frank

Outcomes