[gdal-dev] thuban/ gdal : ERROR 4 not recognized format
Didrik Pinte
lists at dipole-consulting.com
Fri Jul 10 03:07:47 EDT 2009
On Thu, 2009-07-09 at 19:58 +0200, Even Rouault wrote:
> I see in a call to GDALDestroyDriverManager() in
> http://wald.intevation.org/plugins/scmsvn/viewcvs.php/trunk/thuban/libraries/thuban/gdalwarp.cpp?rev=2866&root=thuban&view=markup.
>
> This is a very bad idea if you intend to call the ProjectRasterFile() method
> several times !! This deregisters all drivers, so this might explain why you
> don't manage to open the file afterwards.
>
> The GDALDestroyDriverManager() method is called in the *utilities* to release
> as much memory as possible to make memory checker tools such as Valgrind
> happy, but they should not be used in the context of a library.
Hi Evan,
You rock ! The problem is solved.
I have removed the call to GDALDestroyDriverManager() and rebuild the
app. It works fine now ! All the tests passes and the app loads multiple
files without any problems.
Thanks for taking the time to have a look at the file and for your help.
-- Didrik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090710/6df7e65e/attachment.bin
More information about the gdal-dev
mailing list