[Qt-interest] What to do if connection to second XServer died?

Wilhelm wilhelm.meier at fh-kl.de
Wed May 25 12:29:41 CEST 2011


Hi,

I have a Qt application which open a second connection to another
xserver (XOpenDisplay()). I can use this connection well, but the Qt
application exits if this second x11 connection dies.

I tried to install a xio error handler with XSetIOErrorHandler() and not
returning from this setjmp() / longjmp() and then closing and
invalidating my QObject representing the connection.

I think I'm doing something totally wrong here because the application
still crashing - now when calling the ~QImage() ...

Any hints how to do this?

-- 
Wilhelm




More information about the Qt-interest-old mailing list