[gdal-dev] Potential dangerous use of CPLSetErrorHandler()
Jürgen E. Fischer
jef at norbit.de
Fri Feb 18 03:05:26 EST 2011
Hi Even,
On Fri, 18. Feb 2011 at 01:02:30 +0100, Even Rouault wrote:
> This is going to be quite painfull since you have to do this for each GDAL
> method you bind, and be careful to correctly pair CPLPushErrorHandler() /
> CPLPopErrorHandler() (the later being the easiest to forget in unsuual code
> paths, such as error code paths).
Something like
http://trac.osgeo.org/qgis/browser/trunk/qgis/src/providers/ogr/qgsogrprovider.cpp#L67
might be useful to automate the push/pop.
Jürgen
--
Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-20
Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50
Software Engineer D-26506 Norden http://www.norbit.de
--
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502
More information about the gdal-dev
mailing list