On 16 January 2013 10:13, Even Rouault <even.roua...@mines-paris.org> wrote: > Hi Mateusz, > > Looking at NCJP2FileView.cpp, I can see that most accesses to sm_Views are > protected with CNCSJPCGlobalLock _Lock; > > Perhaps it should also be added to CNCSJP2FileView::Shutdown() which seems the > only place in that file not protected by the lock.
Hi Even, Lock is one side of the problem. The second one is non-deterministic nature static initialization and static deinitialisation issue. In this case, the latter. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev