[geos-devel] initGEOS semantic ?

strk strk at keybit.net
Sat Apr 17 08:14:59 EDT 2010


For the record, I verified that up to 3.0.0
the semantic was indeed NOT to allocate any new
structures, see:

 http://trac.osgeo.org/geos/browser/branches/3.0/capi/geos_c.cpp

Thus I think we should go back there.

--strk;


On Sat, Apr 17, 2010 at 01:22:22PM +0200, strk wrote:
> I tought initGEOS() [ the non-rehentrant version ]
> was always returning the same handle, a singleton.
> 
> Code reveals that's not the case, which means
> old clients (like postgis) end up allocating
> lots of contexts and leat them leak.
> 
> So, is there any reason not to return a singleton ?
> 
> --strk;
> 
>   ()   Free GIS & Flash consultant/developer
>   /\   http://strk.keybit.net/services.html
> _______________________________________________
> geos-devel mailing list
> geos-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geos-devel

-- 

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html


More information about the geos-devel mailing list
OSZAR »