DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41626>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41626

           Summary: JSVGCanvas has memory leak problem when resizing the
                    component
           Product: Batik
           Version: 2.0
          Platform: HP
        OS/Version: Windows 2000
            Status: NEW
          Severity: major
          Priority: P2
         Component: SVGGraphics2D
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


Continuously resizing the size of the canvas is causing the memory to be leaked.
Calling garbage collector does not fix the problem. To see the effect of memory
leak, continously call the setSize method of the canvas and let the size grow. 
For example: call increaseSize many times and decrease size. Each time memory
increases. Calling garbage collector reduces a little but in total always memory
is increasing. Note that you should test the code with a large svg document so
that you can see the effect more quickly.

increaseSize()
{
 Dimension size = svgCanvas.getSize();
 size.width*= 1.3;
 size.height*= 1.3;
  svgCanvas.setSize(size);
}  

decreaseSize()
{
 Dimension size = svgCanvas.getSize();
 size.width/= 1.3;
 size.height/= 1.3;
  svgCanvas.setSize(size);
}

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to