Archie Cobbs wrote:
>>   Are you certain that the nodes you remove are going to GC?
>>I suspect they are not (this may be a Batik problem or it may
>>be a problem in your app).  Note that this can't be a Memento
>>problem since it uses soft references.
> 
> I picked a random memento and looked at what it was referencing.
> It pointed to a <g> node that is the rererent of a <use> node
> (i.e., the <g> node contained stuff that is in the <defs> section).
> 
> Note that one thing my application does is change the "xlink:href"
> attribute on existing <use> nodes to point them at different symbols.
> 
> Perhaps there is some leak where Batik retains a reference to the
> previously pointed-to <use> referent?

Aha! I changed my code to delete the previous <use> and add a new
<use> each time, instead of just changing the "xlink:href" attribute,
and this fixed the leak.

So as far as I can tell there is a Batik memory leak in handling this case.

Thanks,
-Archie

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


*
Confidentiality Notice: This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential and 
privileged information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all copies of 
the original message.
*


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

Reply via email to