Re: Xlib : sequence lost (0x1718e > 0x71a0) in reply to 0x0!

[email protected]
Newsgroups gmane.comp.xfree86.devel
Message-ID <48136.127.0.0.1.1138965328.squirrel@localhost>
Hi
   Thanks for quick reply. I have did according to ur suggestion
    call to XOpenDisplay for the new thread .
  But again it is working fine sometime . This is code, that I have
   did .


 *dpause (void *arg)
{
  display = XOpenDisplay ( 0 );
 pausem *paused_dialog = new pausem (0,"dpause");//here fails
  paused_dialog->show();
}

pause()
{
int rc =  pthread_create( &thread5, &attr, dpause, NULL );
    rc=  pthread_join(thread5 ,&thr_retval ) ;
 while (pause_rec == 0 )
		 {

	       sleep(1);
    	  }
	 if(pause_rec==1) {
          XCloseDisplay (display);
	   pthread_exit(&thread5 ) ;
                      }

}
 plz give some suggestion to solve this problem .
Thanks

>>     What do you mean by separate display  connections" ?
>>     The case is this :
>>
>>    I mean a display connection returned by XOpenDisplay.
>>
>>
>
> Right.  I think what Carsten is saying is, if you might need to pause a
> thread in the middle of Xlib, then that thread needs to make its own
> call to XOpenDisplay, so that it has its own connection, separate from
> the rest of the application.
>
> --
> Tim Roberts, [email protected]
> Providenza & Boekelheide, Inc.
>
> _______________________________________________
> Devel mailing list
> [email protected]
> http://XFree86.Org/mailman/listinfo/devel
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.