[GRASS-dev] Re: [GRASS GIS] #1158: Removing vector map in Windows
fails with "Unable to delete vector map"
GRASS GIS
trac at osgeo.org
Thu Apr 21 11:55:51 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:32 martinl]:
> Replying to [comment:31 martinl]:
> > Replying to [comment:30 mmetz]:
> > > OK. I suggest Vect!__open_old() and Vect_open_new() should
initialize all file pointers to NULL and Vect_close() should close
anything that is not NULL.
> >
> > it's already in trunk [source:grass/trunk/lib/vector/Vlib/open.c#L165]
>
> ...only referring to Vect!__open_old()
Unfortunately, G_zero() does not set all contents of the Map_info
structure to 0 or NULL; that's the reason for the existence of line 180 in
open.c [grass/trunk/lib/vector/Vlib/open.c#L180]
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1158#comment:33>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list