Hello all,
I am having a problem getting layers to be removed from memory after they
have been removed from the layer handler. Old layers (byte[]) seem to be
just building up in Heap Space.
I have a class called OmRasterLayer that extends OmGraphicHandlerPlugIn, and
this is the class that creates the raster layers. We use OMScalingRaster
and Layer to hold the layer information. OmRasterLayer also implements the
removed() method that nullifies the raster and layer objects upon removing
the layer from the LayerHandler.
This is what my removed() method looks like:
@Override
public void removed()
{
raster = null;
layer = null;
}
I'm also calling this method manually upon removing a layer from the
LayerHandler.
Is there something else I need to do in order to free up this memory?
I am using OpenMap 4.6.3.
Thanks,
John
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Wed Feb 3 17:23:22 2010
This archive was generated by hypermail 2.1.8 : Wed Feb 03 2010 - 17:23:22 EST