Thanks, Frank. I'll check source code of the FalconView Shapefile overlay and see if it is requesting exclusive access. That could be the problem and I could change that as there is no need for FalconView to have exclusive access when it is only reading.<div>
<br></div><div><br><br><div class="gmail_quote">On Fri, Jan 15, 2010 at 8:40 PM, Frank Warmerdam <span dir="ltr"><<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Joel Odom wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've discovered that when I use OGRSFDriverRegistrar::Open to open a Shapefile, the file remains locked so that another process can't open the file until after I've called OGRDataSource::DestroyDataSource. Is there any way to prevent the file from being locked? Thanks!<br>
</blockquote>
<br></div>
Joel,<br>
<br>
Modern versions of GDAL/OGR route the open request for .shp and .dbf<br>
files through VSIFOpenL(). The Win32 implmentation calls CreateFile()<br>
with the sharing flags:<br>
<br>
FILE_SHARE_READ | FILE_SHARE_WRITE<br>
<br>
As far as I know, this means that any other application which also tries<br>
to open the files allowing shared access should be ok. Is it possible<br>
you are using quite an old version of GDAL/OGR? Or that the other<br>
application is requesting exclusive access?<div><div></div><div class="h5"><br>
<br>
Best regards,<br>
-- <br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/~warmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush | Geospatial Programmer for Rent<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://giscoder.blogspot.com/">http://giscoder.blogspot.com/</a><br>
</div>