Hi everyone,

my Geotools app to plot country-related data to pngs  is working quite well 
now, but when I create many instances of its base class one after another for 
batch plotting, I'm getting this error after a while (10-20 instances of ca. 
300 to come):

Okt 01, 2013 3:02:54 PM org.geotools.data.shapefile.ShpFiles logCurrentLockers
SEVERE: The following locker still has a lock: read on 
file:/D:/workspace_lokal_LAP1328/PowerVisualiser_local/PowerVisualiser_maps/Europa_Mena_Basemap2.shx
 by org.geotools.data.shapefile.shp.IndexFile
Okt 01, 2013 3:02:54 PM org.geotools.data.shapefile.ShpFiles logCurrentLockers
SEVERE: The following locker still has a lock: read on 
file:/D:/workspace_lokal_LAP1328/PowerVisualiser_local/PowerVisualiser_maps/Europa_Mena_Basemap2.dbf
 by org.geotools.data.shapefile.dbf.IndexedDbaseFileReader
Okt 01, 2013 3:02:54 PM org.geotools.data.shapefile.ShpFiles logCurrentLockers
SEVERE: The following locker still has a lock: read on 
file:/D:/workspace_lokal_LAP1328/PowerVisualiser_local/PowerVisualiser_maps/Europa_Mena_Basemap2.shp
 by org.geotools.data.shapefile.shp.ShapefileReader

over and over. And the rendered pngs contain only some of the countries, many 
are missing.
Might it be some kind of memory leak?
I already googled this, and found that it's necessary to call close(); on all 
opened features; I did this, but the error still remains.

All instances access the same .shp-file. Can this be a problem?
It's strange because every instance of JMapFrame is disposed before the next 
one is called... do I have to manually close/dispose other objects than 
features or JMapFrames?
Does anyone have an idea what might cause that?

Thanks in advance, cheers,
Philipp

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to