Yes, I added xmlInitParser() at the main thread before strting any other threads. And I compiled libxml2 library as following. ./configure --with-threads make make install and I copied the library which is built in /usr/local/lib to /usr/lib. Is there anything wrong? Thanks,, Jason, > Date: Tue, 29 Jul 2008 08:56:19 +0200 > From: andreas stricker fela ch > To: xml gnome org > Subject: Re: [xml] Can I ask one question about libxml2? > > ChoiJason wrote: > > Let me ask one question I'm struggling with.I found a problem when using xmlFree(). > > When xmlFree() is called, I think thead look like being hanged. > > So, I put two debug message as following. > > printf("Debug message #1 \n");xmlFree( Buffer );printf("Debug message #2 \n"); > > Did you follow the documentation [1] an call xmlInitParser() (or > XML_TEST_VERSION macro) in main thread before running any other threads? > > * configure the library accordingly using the --with-threads options > * call xmlInitParser() in the "main" thread before using any of the libxml2 API > (except possibly selecting a different memory allocator) > > > Cheers, Andy > > [1] http://www.xmlsoft.org/threads.html > > _______________________________________________ > xml mailing list, project page http://xmlsoft.org/ > xml gnome org > http://mail.gnome.org/mailman/listinfo/xml 강력해진 보안성, 아웃룩을 닮아 편리해진 기능들로 무장한 Windows Live Hotmail! 뜨거운 메일 핫메일, Windows Live Hotmail로 돌아오다! |