Re: [xml] calling xmlInitParser when initializing the python bindings?



On Sat, May 10, 2003 at 10:50:30PM +0200, Stéphane Bidoul wrote:
Hi Daniel,

I'm finishing the patch to initialize per-threads globals.

  okay, good :-)

I need to initialize the mutex protecting the new variables.
Since it lives in globals.c, I suppose I need a xmlInitGlobals()
that would be called from xmlInitParser().

  Hum, use xmlInitThreads() instead that's a placeholder for this

I noticed that the python bindings don't call xmlInitParser().
If I add it in initlibxml2mod, I get all sorts of errors from the
memory debugging interface.

I guess there is a good reason not to call it. Any idea?

  I think I went through this but I can't remember why/how, I got
into troubles, it probably depends where you add it in the python init
routine.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]