David Avery wrote:
Im using
canvas.setURI(documentURL.toString());
to reload several svg files.
After about 8 reloads batik seems to be using a hugh amount of memory,
provoking a java.lang.OutOfMemory.
Are there any tips out there on cleaning up listeners, or freeing
objects so I could continue loading SVG files?
For what it's worth...
I was uncertain about this same issue myself. As a result I decided
to create a new JSVGCanvas each time I loaded a new image, and then
replace the old one in the containing Swing component when it was ready.
-Archie
__________________________________________________________________________
Archie Cobbs * CTO, Awarix * http://www.awarix.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]