[Gdal-dev] missing/wrong compiler option in nmake.opt
Frank Warmerdam
fwarmerdam at gmail.com
Wed May 4 13:58:30 EDT 2005
On 5/4/05, Oscar ter Hofstede <oscar at geovirtual.es> wrote:
> Hi,
>
> I am trying to build a debug version of my application with the latest
> version of GDAL (1.2.6), including MrSid and ECW support.
>
> I need to build with the debug run-time libraries (by specifying the option
> /MDd), since some other libraries I use are using debug functions that are
> only defined there (CrtDbgReport). However, if I build both my application
> and GDAL with the /MDd option, the application crashes in GDALClose() when
> closing a MrSid or ECW dataset.
>
> Has this something to do with the MrSid and ECW libraries not being compiled
> with /MDd? I downloaded the latest versions of their libraries from their
> websites last week. Is there a solution to this problem?
Oscar,
I suspect this is because when using the debug libraries, more runtime
heap checking is done, and one or both of the MrSID and ECW drivers
have some memory bugs. I believe ERMapper submitted a fix for a
cleanup-time bug in my ECW driver code just a week or two ago, so
1.2.6 would still be suffering from that. I'm not sure why there would
be such a problem with MrSID. It could be something latent.
It is also possible that mixing /MDd GDAL libraries with non-debug
versions of MrSID and ECW libraries causes problems but it seems the
problem would arise before close time.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list