[Expat-discuss] Multithread problem.

Carlos Atabales catabales at hotmail.com
Mon May 9 21:42:58 CEST 2005


do you call XML_SetElementHandler(this_instance->parser ,start ,end) before 
a call XML_Parse(this_instance->parser,...) instance ?



>From: Groleo Marius <groleo at gmail.com>
>Reply-To: Groleo Marius <groleo at gmail.com>
>To: Golibasku <ceo at absoft-net.com>
>CC: expat-discuss at libexpat.org
>Subject: Re: [Expat-discuss] Multithread problem.
>Date: Sun, 8 May 2005 06:40:26 +0000
>
>On 5/7/05, Golibasku <ceo at absoft-net.com> wrote:
> > Hi,
> >
> > I have the following problem. When expat work in multi-thread 
>application,
> > it will crash. I know that there may be some bug in my application. But
> > anyone know whether the following scenario is ok ?
> >
> > I have one thread which will parse an XML file by using XML_Parse(...)
> > when the XML_Parse is working, another thread will parse another XML 
>file by
> > using XML_Parse(...)
> >
> > There are 2 instance of XML_Parser which are created by XML_Create(). 
>But
> > the handler is the same.
> >
>
>You have to check if the handlers are thread-safe.
>After that, you should create a new parser instance per thread.
> >
> > _______________________________________________
> > Expat-discuss mailing list
> > Expat-discuss at libexpat.org
> > http://mail.libexpat.org/mailman/listinfo/expat-discuss
> >
> >
> >
>
>
>--
>Regards, Groleo!
>
># touch universe
># chmod +rwx universe
># ./universe
>_______________________________________________
>Expat-discuss mailing list
>Expat-discuss at libexpat.org
>http://mail.libexpat.org/mailman/listinfo/expat-discuss

_________________________________________________________________
MSN Amor: busca tu ½ naranja http://latam.msn.com/amor/



More information about the Expat-discuss mailing list