Well it's part of JSVGComponent.class

/**
    * Removes all images from the image cache.
    */
   public void flushImageCache() {
       ImageTagRegistry reg = ImageTagRegistry.getRegistry();
       reg.flushCache();
   }


ImageTagRegistry.class

public void flushCache() {
       rawCache.flush();
       imgCache.flush();
   }

Unless it's flushed the cache contents seem to persist in the heap untill the JVM expires.



Archie Cobbs wrote:

David Avery wrote:

Well I figured it out.
canvas.flushImageCache();

After about 8 reloads batik seems to be using a hugh amount of memory,
provoking a java.lang.OutOfMemory.


Interesting... so what's the image cache and what does it do?

-Archie

__________________________________________________________________________ Archie Cobbs * CTO, Awarix * http://www.awarix.com

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





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

Reply via email to