<div dir="ltr"><div><div><div>gdal version gdal-1.11.3 - Filegeodbversion 1.4<br></div><div>{<br>OGRSFDriverRegistrar    *poR;                    //Pointer to hold the driver registration<br>OGRSFDriver                *poDriver;<br>OGRDataSource            *poODS;<br>OGRRegisterAll();<br>poR = OGRSFDriverRegistrar::GetRegistrar();<br>poDriver = poR->GetDriverByName("FileGDB");<br>poODS = poDriver->CreateDataSource("sample1.gdb",NULL);<br>/*<br></div><div>Here adding layeres and fields and geom<br></div><div>Finnally closing the dataset OGRDataSource::DestroyDataSource( poODS );<br></div><div><b>OGRCleanup not called.</b><br></div><div>*/<br></div><div>}<br></div><b>First time the code works fine, and the second time different .gdb name the code crashes at createDatasource.</b><br></div><b><br>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 <span style="color:rgb(0,0,255)">DLL</span></b><br><br></div><div> <b>features created are destroyed.OGRFeature::DestroyFeature( poFeature );</b><br></div><div>Do I use the API correctly? any suggestions, What the cause of this crash<br><br></div></div>