Re: [gdal-dev] How to delete shapefile

2009-06-17 Thread Mateusz Loskot
Clay, Bruce wrote: Mateusz: Thanks for your reply. Unfortunately I can not get far enough to do that. The crash is occurring down stream from OGRRegisterAll. That is to say, the last call in my code space before the crash is OGRRegisterAll. I can not get OGR initialized to be able to open a

Re: [gdal-dev] How to delete shapefile

2009-06-17 Thread Mateusz Loskot
Clay, Bruce wrote: Frank: Thanks for the information. I tried to update to a newer version of GDAL (I tried both 1.6.1 and 1.7.0) but the both crash on RegisterAll In both cases the problem seems to be in the following method void VSIFileManager::InstallHandler( const std::string& osPrefix,

RE: [gdal-dev] How to delete shapefile

2009-06-17 Thread Clay, Bruce
OccurrenceTool.exe!__tmainCRTStartup() Line 589 + 0x35 bytes C OccurrenceTool.exe!WinMainCRTStartup() Line 414C kernel32.dll!7c817067() [Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll] -Original Message- From: Frank W

Re: [gdal-dev] How to delete shapefile

2009-06-16 Thread Frank Warmerdam
Clay, Bruce wrote: I am trying to delete a temporary shapefile after running a process with the following code. ... The TestCapability always returns FALSE. If I call DeleteLayer anyway I get an unsupported operation error messege. I am using GDAL 1.5.3 with Visual Studio 2005. Is there an

[gdal-dev] How to delete shapefile

2009-06-16 Thread Clay, Bruce
I am trying to delete a temporary shapefile after running a process with the following code. int GdalWrapper::DeleteDataset(const char *datasetName) { int status = -1; if (datasetName != NULL) { OGRDataSource *dataSrc = OpenDatasetFile(datasetName);