Re: external graphics and memory usage

2003-05-15 Thread J.Pietschmann
Torsten Erler wrote: You can also try to use WeakHashMap for m_urlMap Unless I got something wrong with the WeakHashMap semantics it would be rather pointless to do as proposed. An entry in a WeakHashMap is reclaimed as soon as the GC runs after any non-weak reference to the key is released. For th

RE: external graphics and memory usage

2003-05-15 Thread Torsten Erler
09:43 > To: [EMAIL PROTECTED] > Subject: RE: external graphics and memory usage > > > Hi, > > I had the same Problem, > > org.apache.fop.image.FopImageFactory is caching the Images > and will never > release the Reference. > I've commented out "m_ur

RE: external graphics and memory usage

2003-05-15 Thread Torsten Erler
Hi, I had the same Problem, org.apache.fop.image.FopImageFactory is caching the Images and will never release the Reference. I've commented out "m_urlMap.put(href, imageInstance);" @ line 223. You can also try to use WeakHashMap for m_urlMap or add a method which clears the Map on programmatical