[geos-devel] initGEOS/finishGEOS and multiple subsystems

Stephen Lime sdlime at comcast.net
Sun Jul 2 11:42:56 EDT 2006


Is there any issue with the error/warning functions that may be pointed 
to? Can different
subsystems use separate functions at the same time?

Steve

On Jun 30, 2006, at 9:31 AM, Howard Butler wrote:

> Recently, Steve Lime reconfigured MapServer to use the GEOS C API 
> instead of the C++ one.  Python Cartographic Library, which builds on 
> MapServer and GEOS, among other things, *also* uses the GEOS C API.  
> Each subsystem doesn't know when the other is calling 
> initGEOS/finishGEOS, and on teardown, this is causing a segfault 
> because the geomFactory has already been destroyed.
>
> After some discussion on #gdal with Frank, Norman, and Mateusz, we 
> suggest that initGEOS/finishGEOS do some reference counting to ensure 
> that geomFactory isn't prematurely destroyed.
>
> Does this seem reasonable?
>
> Howard
>
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel
>




More information about the geos-devel mailing list