[Gdal-dev] Crash while calling CPLSetConfigOption

Frank Warmerdam warmerdam at pobox.com
Tue Apr 25 15:41:50 EDT 2006


Antoine Hue wrote:
> Hi,
> 
> I am currently porting my software to Windows using MingW, for sure it 
> is using GDAL underneath.
> 
> When testing the build result, at first it was crashing as GDAL was not 
> able to create an OGRSpatialReference. I thought then, the problem was 
> coming from the fact that GDAL is not able to find its CSV data files.
> While in Linux I was using the setenv() stdlib call, it does not exists 
> on GDAL. Browsing GDAL code, I figured out that it is possible to use 
> CPLSetConfigOption() to do something similar. However, I get a crash on 
> the CPLSetConfigOption() call.
> I see two possibilities:
> - I am not using the function correctly, an init is needed.
> - My GDAL DLL build is crap.
> 
> Could you answer the first option?

Antoine,

Could you show how you are using the call?  Is there any chance you could
trace the crash in gdb or some other debugging environment?

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    | President OSGF, http://osgeo.org




More information about the Gdal-dev mailing list