[Gdal-dev] Null-Pointer in GDALOpen?

Frank Warmerdam warmerdam at pobox.com
Mon Oct 22 10:37:46 EDT 2007


Tom Kazimiers wrote:
> Hello there,
> 
> by playing around with GDAL I got some times the following error:
> 
> Errorcode: 0xc0000005
> Erroradress: 0x011058a8
> Read: 0x00000000
> 
> Looks like Null-Pointer for me.
> 
> The code producing this is the following:
> 
> GDALDataset *poDataset = (GDALDataset *) GDALOpen("a.tif", GA_ReadOnly );
> 
> 
> The file "a.tif" exists and I have openend it several times until it
> suddenly stopped working.
> I tryed with a SVN build from today and got the same results.
> 
> What could cause such a failure in GDALOpen?
> 
> I am using Visual Studio 2005 and devolpe for Windows CE.

Tom,

Did the crash occur within GDALOpen() or afterwards when you tried
to use the NULL poDataset?  It isn't obvious why GDALOpen() would be
failing.  Perhaps you have done something that used up all your file
handles?

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




More information about the Gdal-dev mailing list