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@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
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev