#1158: g.mremove fails when used with wildcard in WinGRASS-6.4.0-1 ----------------------------------+----------------------------------------- Reporter: lponti | Owner: grass-...@… Type: defect | Status: new Priority: normal | Milestone: 6.4.1 Component: Vector | Version: 6.4.0 Keywords: g.mremove, wildcards | Platform: MSWindows 7 Cpu: x86-32 | ----------------------------------+-----------------------------------------
Comment(by glynn): Replying to [comment:1 hellik]: > but in a second run of > all vector maps marked by the *-wildcard are deleted. Vect_open_old_head() is called if the dbln file exists. After deleting the table, the map is closed. Then all files are deleted from the directory. I think that Vect_close() isn't closing all of the files, causing the unlink() to fail on Windows (on Unix, you can delete open files; on Windows, you can't). I note that the history file is opened for both native and OGR maps, but is only closed for native maps. But I don't think that's the issue. What would be an issue is if the database driver inherits the descriptor for the hist file, and is still running when Vect_delete() tries to delete the history file. I note that db_table_exists() doesn't shut down the driver if it returns an error indication. -- Ticket URL: <http://trac.osgeo.org/grass/ticket/1158#comment:3> GRASS GIS <http://grass.osgeo.org>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev