[Xcb] [Bug 78140] The tutorial should have a section on error handling

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu May 1 08:17:43 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=78140

--- Comment #2 from Steven Stewart-Gallus <sstewartgallus00 at mylangara.bc.ca> ---
Okay, this was confusing for me. There is no section in the tutorial but there
is somewhat of an explanation on error handling in the xcb-requests.3 man page
(it doesn't mention the xcb_connection_has_error part though).

So, my bug should now be: add a section on error handling to the tutorial, copy
some parts of the xcb-requests.3 man page to the section and add information on
handling client errors with xcb_connection_has_error.

I should be able to put together at least a prototype myself but I need to ask
a few more questions.
Do I need to call xcb_connection_has_error after absolutely every function that
gets passed a connection?
Is there a function to get an error string for each error (keep in mind that
one may want to sometimes localize error messages so this is not as easy as it
seems).
How do I check for errors with the xcb_disconnect function (I know that free(3)
does not give errors but what about close(2))?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20140501/036d14a0/attachment.html>


More information about the Xcb mailing list