Hi,

I've been trying to track down memory leaks in our application and have noticed that the XMLGrammarLoader internally retains hard references to schema grammars after completing a parse. This occurs in the grammar bucket and XSDHandler also keeps an import map, there may be other places too. It does remove them on the next parse, but this kind of thing tends to obscure real leaks. Discarding the parser is an option but it isn't ideal as it seems to involve quite a performance overhead compared with reusing the same parser.

I've also found that XSDHandler also has a field 'fParent' which appears to be a stack of XSObject's. This is never cleared, only grown as required, which means that an object that finds its way into here may well never be garbage collected.

Thanks,

Chris Simmons.


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

Reply via email to