[Gdal-dev] Error messages
Frank Warmerdam
warmerdam at pobox.com
Mon Feb 24 10:04:27 EST 2003
Ayman Kamal wrote:
> How can I disable error messages from being displayed?
>
Ayman,
In C or C++ call "GDALSetErrorHandler( CPLQuietErrorHandler );". In general
you can install your own handler that displays the error in any desired
way. Note that custom error handlers should not in general throw an
exception as GDAL won't necessariliy get to do proper cleanup on the way out
then. The CPLQuietErrorHandler() is just an error handler that does not
report the error to the user.
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 | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list