[geos-devel] problems with C/C++- getting warmer! (Reader Frees
dblasby at refractions.net
Mon Apr 7 17:59:20 EDT 2003
Norman Vine wrote:
>does this work for you ?
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.
More information about the geos-devel