hi, when i handle a bad jpg file, like this: eErr = GDALRasterIO(hBand, GF_Read, 0, 0, nXSize, nYSize,......)
i got this error message in console: Premature end of JPEG file i'm wonder where the error msg come from. because i found that: eErr == CE_None when i use this code the code quiet the msg: CPLPushErrorHandler( CPLQuietErrorHandler ); eErr = GDALRasterIO(hBand, GF_Read, 0, 0, nXSize, nYSize,......) the error msg still be there. so, my question is: where the error msg come from, how can i quiet it or handle it. and how can i know the image file is bad before i process it. -- View this message in context: http://n2.nabble.com/how-can-i-get-the-error-msg-tp2575343p2575343.html Sent from the GDAL - Dev mailing list archive at Nabble.com. _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
