[lxml-dev] Test failures on Windows
Sidnei da Silva
sidnei at awkly.org
Sat Oct 28 15:25:35 CEST 2006
On Sat, Oct 28, 2006 at 03:16:43PM +0200, Stefan Behnel wrote:
| Not only generic. Pending open files is only a symptom here. The real problem
| is that none of the resources allocated for parsing is freed before you call
| the parser again (in which case new resources will be allocated right away).
|
| So popping the input streams fixes the windows problem, but calling
| xmlClearParserCtxt() after parsing would be the right thing to do - if it
| didn't crash.
Thanks for the explanation. That makes a lot of sense.
A question though. Is the parser context expensive to allocate? Why
not use xmlFreeParserCtxt() and allocate a new one instead of
xmlResetParserCtxt()?
--
Sidnei da Silva
Enfold Systems http://enfoldsystems.com
Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214
More information about the lxml-dev
mailing list