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
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev