[Gdal-dev] Exceptions/Win32

Ned Harding nharding at extendthereach.com
Wed Jul 19 17:45:37 EDT 2006


FYI - we found a very annoying and subtle bug recently in OGR when your
custom error handling throws an exception (in VC 7.1).  The default
project is built with /EHsc, and for a variety of reasons the exception
is not handled properly by the compiler and Mutex's don't properly
unlock, creating a deadlock condition later on.  Needless to say, this
was not fun to debug.  So anyway, if you throw an exception from the
function you registered in CPLSetErrorHandler, make sure that you
compile GDAL/OGR with /EHa instead of /EHsc and all will be well.
 
Ned
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20060719/ada05814/attachment.html


More information about the Gdal-dev mailing list