WARNING: KDE detected X Error

Andy Brice andyb1 at btclick.com
Tue Jan 13 12:35:23 GMT 2004


From: "David Faure" <faure at kde.org>
>
> Another way is to install your own X error handler:
>
> static int my_x_errhandler( Display *dpy, XErrorEvent *err )
> {
>     char errstr[256];
>     XGetErrorText( dpy, err->error_code, errstr, 256 );
>     if ( err->error_code != BadWindow )
>         kdWarning() << "Detected X Error: " << errstr << " " <<
err->error_code
>                 << "\n  Major opcode:  " << err->request_code <<
kdBacktrace() << endl;
>     return 0;
> }
>
>  XSetErrorHandler( my_x_errhandler );

Thanks David.

I'm trying the X error handler approach. Of course now I can't replicate the
problem.
;0)

Andy Brice






More information about the kfm-devel mailing list