<div dir="ltr">Hi,<div><br></div><div>I guess it would be ideal to implement the tracking and we should give it a shot. I think it will be worth the effort. To just document the problem and leave it at that would be easier and we can always consider this later on if need be. Can you tell me more about these internal geometries? Other geometries can be tracked like you pointed out but what about these.</div>

<div><br></div><div>Regards,</div><div>Varun Saraf</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 7, 2014 at 8:19 PM, Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Fri, Mar 07, 2014 at 07:57:49PM +0530, Varun Saraf wrote:<br>
> Hi,<br>
><br>
</div><div class="">> Currently, how is a GeometryFactory deleted and under what circumstances is<br>
> the finishGEOS function called? Given a GeometryFactory needs to stay alive<br>
> as long as any geometry that has been constructed with that factory. How<br>
> can we be sure that no geometry is still active which was created using<br>
> this GeometryFactory?<br>
<br>
</div>The finishGEOS_r function is supposedly called when the user is no longer<br>
willing to use a specific "context". The finishGEOS function is supposedly<br>
called when the user is no longer willing to use the library, until next<br>
call to initGEOS. That's how they are documented.<br>
<br>
One way to track created geometries would be putting them in a list on<br>
creation and dropping them off the list when destructed (there's a C-API<br>
endpoint for deleting them). But some geometries are created "internally",<br>
as the result of operations. Those geometries would be harder to get on<br>
that list.<br>
<br>
Would such tracking list be worth it ? Or better to just document the<br>
problem and let the user be able to shoot their feet ?<br>
<div class="HOEnZb"><div class="h5"><br>
--strk;<br>
_______________________________________________<br>
geos-devel mailing list<br>
<a href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geos-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geos-devel</a><br>
</div></div></blockquote></div><br></div>