You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by Thierry Kormann <Th...@sophia.inria.fr> on 2000/11/20 12:01:10 UTC
Re: [commit] Missing class GraphicsNodeTreeIterator
> I committed this missing class. My CVS access is
> much better this morning, but that seems to be the
> trend - poor access when California is awake...
I need to update JSVGCanvas and work on the rotation and thumbnail aspect. Is
it possible to let me commit my changes???
> So, Thierry - how did fix the memory
> leak? (I know, we will talk more about it this afternoon).
The problem is that the renderer add listeners on the gvt root (repaint
listener and may be others for text selection). As the JSVGCanvas creates new
renderers each time the window is resized or I don't know exactly when... The
gvt root keeps a reference on the renderer (and the old buffered image by the
same occasion).
Conclucion: A long term solution is to keep *only one* renderer for the same
document ! And call bufferedImage.flush() each time we create a new one and
call the renderer.setOffscreen.
Thierry.
--
Thierry Kormann
email: Thierry.Kormann@sophia.inria.fr http://www.inria.fr/koala/tkormann/
Koala/Dyade/Bull @ INRIA - Sophia Antipolis