Hi,

 

I am facing following problem when using batik SVG canvas..

 

1)       Currently I add Batik SVGCanvas object to a Jpanel (which I add to
jDialog). This jDialog is called from Jframe where I have open and close
events of the jDialog. Whenever I close the Jdialog (which has the panel
with the SVGcanvas) the dialog, panel and canvas closes but when I check the
netbeans profiler I see Live allocated objects of Batik still consuming
space in memory. These are 1)org.apache.batik.dom.GenericText
2)org.apache.batik.util.DoublyIndexedTable$Entry 3)
org.apache.batik.dom.GenericAttr
4)org.apache.batik.dom.AbstractParentNode$ChildNodes and so on… Is there
reason why these objects are still in memory without getting gc’ed .. Is
there a way to get them gc’ed… I need help on this because…as I close and
open the jdialog continuosly memory for the above mentioned classes
increases and I get out of memory error.

2)       Whenever a svg file with viewbox defined is loaded/resized the svg
canvas does not display the svg in the canvas as full screen. What I mean
here is if the svg file has background black…then when svg file is displayed
a white canvas background is shown surrounding the svg image(since svg file
is not displayed entirely on the canvas.)..Is there a way this can be
handled?

 

Please mail me If there are alternate ways to handle these problems/ or I am
missing something …

 

Thanks in advance.

Sivaraman.

-- 
View this message in context: 
http://www.nabble.com/Batik-SVGCanvas-still-active-after-GC-tp20657111p20657111.html
Sent from the Batik - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to