That problem is pretty operating system specific; we open the shapefiles up in "memory mapped" mode for speed - with some fun side effects such as the file being locked as long as we are working with it.
The shapefile commit code has something fun in terms of renaming the file during the commit() method. But in general the shapefile data store is using the file the whole time you are working with it. Jody On Tue, May 5, 2009 at 11:58 AM, Ricardo Santos <[email protected]> wrote: > HI, i’m reading shapefiles with geotools but the files are locked and used > by the application until I close it. There is any solution or method to > unlock the shapefile files after I read them?? And can delete the files or > write at the same file?? > > > > thks > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
