[geos-devel] problems with C/C++- getting warmer! (Reader Frees
toomuch?)
David Blasby
dblasby at refractions.net
Mon Apr 7 17:59:20 EDT 2003
Norman Vine wrote:
>Dave
>
>does this work for you ?
>
>
No.
The reason is likely because "WKTReader r" is auto-deleted by the compiler when
createGEOSFromText(char *wkt) returns.
If I change it so "r" is not deleted (by using new and no delete):
WKTReader *r = new WKTReader(new GeometryFactory(new PrecisionModel(),-1));
g = r->read(wkt);
it works correctly.
dave
More information about the geos-devel
mailing list