Re: [xml] Can I ask one question about libxml2?
- From: Andreas Stricker <andreas stricker fela ch>
- To: xml gnome org
- Subject: Re: [xml] Can I ask one question about libxml2?
- Date: Tue, 29 Jul 2008 08:56:19 +0200
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]