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




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