Path: utzoo!attcan!uunet!husc6!bbn!rochester!cornell!batcomputer!itsgw!mailrus!iuvax!pur-ee!uiucdcs!uiucdcsm!ksung From: ksung@uiucdcsm.cs.uiuc.edu Newsgroups: comp.windows.x Subject: Need Help on XESetErrorString Message-ID: <26900040@uiucdcsm> Date: 16 Jun 88 22:28:00 GMT Lines: 27 Nf-ID: #N:uiucdcsm:26900040:000:819 Nf-From: uiucdcsm.cs.uiuc.edu!ksung Jun 16 17:28:00 1988 I'm working on a X-Extension, and here is a problem with ErrorString hook into the Xlib. Can someone help me with ? The C binding Xlib has a very confusing decription, which I couldn't understand. (AppendixA in X11R1 1 and appendixD in X11R2) Xlib seemed to suggest that XESetErrorString sets the function to be called when there is an I/O error, and XESetFlushGC sets the function to be called when application calls XGetErrorText. but I looked at the source code of XESetErrorString in ./lib/X/XInitExt.c and XGetErrorText in ./lib/X/XErrDes.c seems to me XESetErrorString is setting the function to be called when XGetErrorText is called. Then what's XESetFlushGC do, and how to set the function to be called when there are I/O errors? Thanks in advance. ksung@m.cs.uiuc.edu