[GRASS-dev] Re: [GRASS GIS] #1158: Removing vector map in Windows fails with "Unable to delete vector map"

GRASS GIS trac at osgeo.org
Tue Apr 19 05:26:38 EDT 2011


#1158: Removing vector map in Windows fails with "Unable to delete vector map"
--------------------------------------------------------------------------+-
 Reporter:  lponti                                                        |       Owner:  grass-dev@…              
     Type:  defect                                                        |      Status:  new                      
 Priority:  blocker                                                       |   Milestone:  6.4.2                    
Component:  Vector                                                        |     Version:  6.4.0                    
 Keywords:  wingrass, g.mremove, wildcards, v.in.ogr, v.select, g.remove  |    Platform:  MSWindows 7              
      Cpu:  Unspecified                                                   |  
--------------------------------------------------------------------------+-

Comment(by mmetz):

 Replying to [comment:23 marisn]:
 > I changed bug summary to better reflect it's scope.
 >
 > It affects also v.in.ogr removal of temporary files (coor and not hist
 file). Bug #1303

 Hopefully fixed for devbr in r46041.

 Vect_delete() uses unlink(), whereas raster and all other files are
 removed by remove(): the file will remain in existence until the last file
 descriptor referring to it is closed (at least on Linux). In
 Vect_delete(), I have replaced unlink() with remove(), working on Linux,
 awaits testing on Windows.

 Markus M

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1158#comment:25>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list