[GRASS-dev] Re: [GRASS GIS] #1303: v.in.ogr leaves TMP file after import

GRASS GIS trac at osgeo.org
Tue Apr 19 03:34:06 EDT 2011


#1303: v.in.ogr leaves TMP file after import
--------------------------------+-------------------------------------------
 Reporter:  marisn              |       Owner:  grass-dev@…              
     Type:  defect              |      Status:  new                      
 Priority:  minor               |   Milestone:  6.4.1                    
Component:  Vector              |     Version:  6.4.1 RCs                
 Keywords:  wingrass, v.in.ogr  |    Platform:  MSWindows Vista          
      Cpu:  Unspecified         |  
--------------------------------+-------------------------------------------

Comment(by marisn):

 It's not / vs \ issue. Here's output of current 6.5 on Vista.
 {{{
 Unable to delete file
 'C:/Users/tests/Documents/GIS_DataBase/latvija/zonde/vector/rm_pilsetas1_tmp/coor'.
 Reason: Permission denied
 }}}
 I have full write access to that directory and also I can delete all files
 with g.remove.

 This leads to timing (or background process) issue - it's not possible to
 delete open file in Windows. Now we need to figure out where closing file
 handle takes more time than simply calling Vect_close.

 Some notes: I disabled file indexing and my antivirus software to prevent
 file locking by those activities - no changes. Also I see this error only
 when importing small files (i.e. one with 77 points) and not large ones.
 If we will not manage to find real cause of this issue, we can IFDEF small
 sleep on Windows to guarantee release of all file handles before trying to
 unlink coor et al.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1303#comment:5>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list