[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: event loop hangs
From:       Lubos Lunak <l.lunak () suse ! cz>
Date:       2004-09-22 11:42:49
Message-ID: 200409221342.49530.l.lunak () suse ! cz
[Download RAW message or body]

On Tuesday 21 of September 2004 07:57, Yarram Sunil Kumar wrote:
> Thanks for the prompt reply. For XInitThreads which .so i have to link
> with? currently i am using libqt-mt.so and libkhtmlpart.so

 Xlib (libX11).

>
> Thanks,
> Sunil.
>
> Lubos Lunak wrote:
> >On Monday 20 of September 2004 12:54, Yarram Sunil Kumar wrote:
> >>Hi,
> >>  I have written an application using libkhtmlpart. My application
> >>fetches a list of urls. during the fetch i get the following message
> >>"Xlib: unexpected async reply (sequence 0x2003e)!" and the event loop
> >
> > The message means more than one thread are accessing the same X
> > connection (and XInitThreads() has not been called).
> >
> >>hangs. Is there any way to catch this error? sothat i can restart
> >>my event loop. Any help is appreciated.
> >>
> >>  To give more details my application is multi-threaded and all other
> >>threads post custom event using
> >>"KApplication::postEvent". My custom event basically has the url to be
> >>fetched. the custom event handler catches the event and does a
> >>KHTMLPart::openUrl().

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l.lunak@suse.cz , l.lunak@kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic