[Gdal-dev] Proposal for Unified Windows Binaries

Mateusz Loskot mateusz at loskot.net
Tue Apr 17 15:45:39 EDT 2007


Tamas Szekeres wrote:
> Can someone confirm that the usage of the different CRT heaps will not
> cause memory related problems when compiling the code using different
> compiler installations.

Tamas,

I believe no one will confirm that.

> (Is the GDAL C API capable to pass memory
> segments being allocated and released on different sides?)

No, it isn't and it is not recommended practice,
as explained in FAQ #14:
http://www.gdal.org/faq.html

Also, here is more detailed discussion of this subject:

http://support.microsoft.com/kb/q140584/
http://msdn2.microsoft.com/en-us/library/abx4dbyh(VS.80).aspx

> Which default options to use the makefile?

It's not a trivial problem.
Personally, I believe in /MD and embedding manifest in binary.

> There are some further issues should also be considered, like:
> 
> 1. Provide support for WIN64 images

Not trivial but feasible.

> 2. Possible issues related to embedding manifests in a multi-compiler
> environment (VC2003, VC2005)

Yes, that's another kind of DLL Hell.

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net



More information about the Gdal-dev mailing list