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: [EMAIL 
PROTECTED]> To: [email protected]> 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
 /> [email protected]> http://mail.gnome.org/mailman/listinfo/xml
_________________________________________________________________
강력해진 보안성, 아웃룩을 닮아 편리해진 기능들로 무장한 Windows Live Hotmail! 지금 로그인해 보세요!
http://www.hotmail.com
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to