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

2006-02-03 Thread niranjan
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

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

2006-02-03 Thread Mark Vojkovich
Each call to XOpenDisplay opens a new communication socket to the X-server. Commands sent through this socket need to be serialized. If you have two threads trying to send data at the same time through the same socket they will corrupt each other's data. XInitThreads enables a lock around the