[gdal-dev] Error reading from OGR: Unhandled Exception... Access violation reading location 0x00000000
mateusz at loskot.net
Mon Jul 16 02:25:08 PDT 2012
On 16 July 2012 10:10, taibc <taibc_coltech at yahoo.com> wrote:
> I am trying to use OGR classes on VS2010 to read and write from file as the
> But I got an error, please see attached screenshot for details.
Your pointer poLayer is NULL.
Perhaps the layer you want could not be found by given name
and this call returns NULL:
poLayer = poDS->GetLayerByName(...)
if( poLayer == NULL )
printf( "Layer not found.\n" );
exit( 1 );
> Do you know this error ?
I'd recommend you to get a good C/C++ book.
Mateusz Loskot, http://mateusz.loskot.net
More information about the gdal-dev