In C# the using statement calls Dispose for you. I've stepped through the OGR C# code and confirmed that Dispose is called. The database locked error occurs in the OGRGeoPackageTableLayer::SyncToDisk() method on the call RunDeferredCreationIfNecessary(). I drilled down to that method and SQLite is returning the database locked error on the call the sends in the create SQL: sqlite3_exec(poDb, pszSQL, nullptr, nullptr, &pszErrMsg);
-- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev