Re: [xml] How to process errors from xmlReadMemory in multi-threaded context?



On 22/11/2010, Yuri <yuri rawbw com> wrote:
I have many threads that call this function, they are all unaware of
each other.
There is no context object that is passed to it, so no error handler can
be attached to local context.

Use xmlCtxtReadMemory instead? Then you can have an xmlParserCtxt per thread.

<http://xmlsoft.org/html/libxml-parser.html#xmlCtxtReadMemory>

Martin



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