[gdal-dev] crashes at CreateDataSource
Gane R
gane.prog at gmail.com
Tue Jan 5 01:54:57 PST 2016
gdal version gdal-1.11.3 - Filegeodbversion 1.4
{
OGRSFDriverRegistrar *poR; //Pointer to hold the
driver registration
OGRSFDriver *poDriver;
OGRDataSource *poODS;
OGRRegisterAll();
poR = OGRSFDriverRegistrar::GetRegistrar();
poDriver = poR->GetDriverByName("FileGDB");
poODS = poDriver->CreateDataSource("sample1.gdb",NULL);
/*
Here adding layeres and fields and geom
Finnally closing the dataset OGRDataSource::DestroyDataSource( poODS );
*OGRCleanup not called.*
*/
}
*First time the code works fine, and the second time different .gdb name
the code crashes at createDatasource.*
*This is a snippet of code, I get crash at CreateDataSource second time for
another filename, this code I am trying to put inside a DLL*
*features created are destroyed.OGRFeature::DestroyFeature( poFeature );*
Do I use the API correctly? any suggestions, What the cause of this crash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20160105/77da0841/attachment.html>
More information about the gdal-dev
mailing list