Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!bloom-beacon!THYME.JPL.NASA.GOV!kaleb From: kaleb@THYME.JPL.NASA.GOV (Kaleb Keithley) Newsgroups: comp.windows.x Subject: XSetErrorHandler question Message-ID: <9008291546.AA05946@thyme.jpl.nasa.gov> Date: 29 Aug 90 15:46:47 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 29 Consider the following (psuedo code): nonFatalErrorHandler (...) {...} main (...) { XOpenDisplay (...); XSetErrorHandler (nonFatalErrorHandler); InitializeClientMessageEvent (...); for (loop = 0; loop < 100; loop++) { XSendEvent (...); /* to an invalid window ID */ XSync (...); } XCloseDisplay (...) } In the above sample, the error handler gets called once for each event sent to an invalid window. But in my real program I am seeing the error handler called once for every four or five events sent to invalid windows. Is this behaviour normal? The O'Reilly Reference has little to say on the subject. I looked at the source, but I'm sorry to say, I couldn't draw any conclusions from that. -- Kaleb Keithley Jet Propeller Labs kaleb@thyme.jpl.nasa.gov "So that's what an invisible barrier looks like!"