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

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to