Hi David,

 Welcome to the list.  That is an excellent question. I wish I had an
answer for you, but it is one of the unsolved problems with JUMP (all
flavors I believe).  In my tests, it is not even consistent.  Sometimes
removing a layer will free most of the memory, but usually it will not.

 There have been attempts made to fix the problem in OpenJump.  See :
com.vividsolutions.jump.workbench.ui.plugin.RemoveSelectedLayersPlugIn
method remove(Layerable[]) which calls
selectedLayers[i].getLayerManager().dispose(selectedLayers[i]) and does
everything you could reasonably expect, however much of the memory, usually
all of it, is still committed after this code runs.

Apparently some plugin(s) still have references to the disposed layers.
Probably via a listener of some kind, but no one has ever tracked down the
problem.

 David, you would be doing a great service to the whole JUMP community if
you could find the solution to this problem.

regards,
Larry Becker

On 5/21/07, david alejandro garcia ortega <[EMAIL PROTECTED]> wrote:

Hi  I am working with the source code of OpenJump and i have the following
question:

When I load a dataset(shapefile)  commited memory is about 150Mb, then
when I remove the dataset the commited memory is about 140Mb. Why
doesn´t memory free?

I want to free memory when the layer is turned invisible calling dispose()
of layer class, and when is turned visible I load the featurecollection
again. But this not work i can´t free memory. What can i do?

Thanks, and sorry for my English i am from México.

------------------------------
Windows Live Spaces en Prodigy/MSN Haz clic aquí
<http://g.msn.com/8HMBESMX/2743??PS=47575> La red más grande en México y
el mundo.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel




--
http://amusingprogrammer.blogspot.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to