[Gdal-dev] GDAL CPLError and C++ Exceptions
Frank Warmerdam
warmerdam at pobox.com
Tue Nov 28 12:09:17 EST 2006
Matt Hanson wrote:
> Ok thanks, that answers my question. I was thinking I could write my own
> error handlers but sounds like that is not a good idea and I just need to
> simply check error status after each GDAL call. Martin - thanks for the
> tips in the other posts.
Matt,
I want to stress that writing your own error handlers is fine, but that they
shouldn't do any non-local control changes (exceptions, longjmp) if you want
to be safe. Overiding the error handlers is mostly done to control where
the errors get reported - the default being to stderr.
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 | President OSGeo, http://osgeo.org
More information about the Gdal-dev
mailing list