[gdal-dev] Error reading from OGR: Unhandled Exception... Access violation reading location 0x00000000
Dmitry Baryshnikov
polimax at mail.ru
Mon Jul 16 02:29:51 PDT 2012
16.07.2012 13:10, taibc пишет:
> Hi friends,
>
> I am trying to use OGR classes on VS2010 to read and write from file as the
> link:
> http://gdal.org/ogr/ogr_apitut.html
>
> But I got an error, please see attached screenshot for details.
>
> http://osgeo-org.1560.n6.nabble.com/file/n4988534/error.png
>
> Do you know this error ?
>
> Thanks and regards,
>
> Tai
>
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/Error-reading-from-OGR-Unhandled-Exception-Access-violation-reading-location-0x00000000-tp4988534.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
You poLayer pointer is NULL. Use const char* err = CPLGetLastErrorMsg();
to check error
Best regards,
Dmitry
More information about the gdal-dev
mailing list