[GRASS-dev] [GRASS GIS] #560: WinGRASS not deleting temp ppm files from map display

GRASS GIS trac at osgeo.org
Sun Aug 19 12:46:12 PDT 2012


#560: WinGRASS not deleting temp ppm files from map display
----------------------------------------+-----------------------------------
 Reporter:  isaacullah                  |       Owner:  grass-dev@…              
     Type:  defect                      |      Status:  new                      
 Priority:  critical                    |   Milestone:  6.4.2                    
Component:  Display                     |     Version:  6.4.0 RCs                
 Keywords:  v.digit ppm temp, wingrass  |    Platform:  MSWindows XP             
      Cpu:  x86-32                      |  
----------------------------------------+-----------------------------------

Comment(by glynn):

 Replying to [comment:12 wenzeslaus]:

 > So, all files created for wxGUI are standard temporary files without
 special requirements and should be created by standard system/python way,
 is that rigth?

 AFAIK, yes.

 > Files which was not opened (files to be combined to resulting map)
 doesn't have to be closed.
 mkstemp returns an OS-level handle to the opened file. This should be
 closed (with os.close()) if it is not required.

 > Now, mkstemp is used for files which will be combined to resulting and
 then os.remove (grass.try_remove) is called. So, I'm not sure where is the
 problem (why temporary files are not removed).
 On Windows, you can't remove a file if any process has it open.

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



More information about the grass-dev mailing list