[prev in list] [next in list] [prev in thread] [next in thread] 

List:       batik-users
Subject:    RE: OutOfMemoryError JSVGCanvas
From:       "Thierry Kormann" <tkormann () ilog ! fr>
Date:       2002-05-22 10:15:51
[Download RAW message or body]

Hi,

> I noticed that a repetitive call to method
> "setSVGDocument(SVGDocument doc)" of JSVGCanvas causes
> OutOfMemoryError very quickly. Using "loadSVGDocument(String url)
> works OK. I need the "setSVGDocument()" functionality because I
> manipulate the DOM prior to the rendering process. Browsing the
> Batik sources, I could not find why it should not be possible to
> manually load a document and then hand it over to JSVGCanvas for
> rendering.
> FYI someone posted the same problem last year on September 24
> with no answers.

I have just commited a fix this morning. The bug was tricky to find because
setSVGDocument used to work properly except if you do
setSVGDocument(getSVGDocument()). That is to say, building again and again
the same SVGDocument.

Anyway, it's now fixed and the attached Java code (based on the
SVGApplication sample from the Batik web site) demonstrates that.

Regards,
Thierry.


["SVGApplication.java" (application/octet-stream)]

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic