[GRASS-dev] Re: ctypes problem with Vect_open_old
Glynn Clements
glynn at gclements.plus.com
Tue Jan 4 10:56:10 EST 2011
Martin Landa wrote:
> right, just facing to the strange problem, any idea?
> p = line_pnts()
> Vect_append_point(byref(p), 1, 1, 0)
You're passing an uninitialised line_pnts structure (i.e. with its
fields containing garbage), and probably trashing the heap. Use
Vect_new_line_struct() to allocate an empty line_pnts object.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list