[geos-devel] GEOS, Shapely, DLLs, and memory
Mateusz Loskot
mateusz at loskot.net
Tue Apr 28 15:34:58 EDT 2009
Charlie Savage wrote:
>
>
>>> Well, there is another way (not necessarily "better"), which is to
>>> compile the GEOS dll yourself using the same runtime that you use in
>>> your main application. That is what I have been doing this whole time to
>>> avoid this issue.
>>
>> It will not help.
>
> Actually Ragi is correct, that does work.
Charlie, Ragi,
I take it beck. Yes, you are right.
Replying in rush, I've missed the fact Ragi is talking
about "the same runtime" what I read as "the same compiler"
and corrected as same compiler != same runtime.
>> You must not cross modules boundaries, it's well known issue on Windows
>> platform.
>
> If an executable and its dlls link against the exact same runtime
> library, you can cross module boundaries because all the memory and file
> handles are managed by the same instance of the runtime library (so in
> effect you aren't crossing runtime library boundaries).
Yes, same runtime, yes.
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
More information about the geos-devel
mailing list