[gdal-dev] Check if a vector is open by other application

Ramiro Gonzalez ramirogonzalez at suremptec.com.ar
Mon Jan 11 16:31:38 EST 2010


Hello

I am using OGR to open "ESRI Shapefiles" and show the content of the .dbf
file. If the file is already open by other application(ie: Excel) and I ask
for the number of fields:

....
int fieldcount = layer->GetLayerDefn()->GetFieldCount();
I get 'fieldcount == 0'.

I`d like to know if there is a way to know if the .dbf is already open by
other application.

Thanks

OS: WinXp
COMPILER:  mingw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100111/25188beb/attachment-0001.html


More information about the gdal-dev mailing list