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
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
