[Xcb] XCB Errors and Handling

Barton C Massey bart at cs.pdx.edu
Sun Jun 11 12:45:13 PDT 2006


Heh.  "Nothing is wrong" is a bit too strong, maybe.  Please
see the XCB email list archives for a discussion of the
upcoming Plan 7 (IIRC), which will give you much more
control over error handling.  In the meantime, Jamey's
advice is how you do it.

	Bart

In message <20060611183211.GR4245 at id.minilop.net> you wrote:
> 
> --===============0914601372==
> Content-Type: multipart/signed; micalg=pgp-sha1;
> 	protocol="application/pgp-signature"; boundary="CGcXfQ1PUDCmwDYp"
> Content-Disposition: inline
> 
> 
> --CGcXfQ1PUDCmwDYp
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> Content-Transfer-Encoding: quoted-printable
> 
> On Fri, Jun 09, 2006 at 10:16:36PM -0500, Ori Bernstein wrote:
> > Hi.
> 
> Hi Ori! Would you subscribe to the list so I don't have to hand-approve
> your posts?
> 
> > XCBPollForEvent() returns an event with response_type =3D=3D 0, but with a
> > (seemingly) valid sequence number. The error returned in the error argume=
> nt to
> > XCBPollForEvent is 0, so I'm not sure what's going wrong.=20
> 
> Nothing is wrong. Unlike Xlib, XCB returns both X errors and events from
> the event queue. When the response_type is 0, you should cast the
> XCBGenericEvent* to an XCBGenericError* and pass that to your error
> handler.
> 
> --Jamey
> 
> --CGcXfQ1PUDCmwDYp
> Content-Type: application/pgp-signature; name="signature.asc"
> Content-Description: Digital signature
> Content-Disposition: inline
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (GNU/Linux)
> 
> iD8DBQFEjGGrp1aplQ4I9mURAsOaAKCPgVK5pmObCvIC6OsQNC+1nxrlcQCePRxA
> b9N9MHCeTZ5GVYozMR5I7A8=
> =4itB
> -----END PGP SIGNATURE-----
> 
> --CGcXfQ1PUDCmwDYp--
> 
> --===============0914601372==
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
> 
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb
> --===============0914601372==--


More information about the Xcb mailing list