Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!ucbcad!ucbvax!ATHENA.MIT.EDU!swick From: swick@ATHENA.MIT.EDU.UUCP Newsgroups: comp.windows.x Subject: Re: when you know you're dead Message-ID: <8704171220.AA04749@ORPHEUS.MIT.EDU> Date: Fri, 17-Apr-87 07:20:41 EST Article-I.D.: ORPHEUS.8704171220.AA04749 Posted: Fri Apr 17 07:20:41 1987 Date-Received: Sat, 18-Apr-87 04:49:03 EST References: <10040@sri-spam.istc.sri.com> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 20 > i've got an application that spits out the following if i hit it with > xdestroy: > > X Error: parameter not a Window Which is exactly why xdestroy is a monstrous kludge. It's an enormously unfriendly action to unilaterally destroy someone else's resources and X10 provides you no assistance in handling this gracefully. Your best best is to set a flag once you're sure you've successfully done some operation to your window (XSync() will help here) and then install your own error handler. You can safely assume that if the window disappears later, you've been nuked by someone like xdestroy. X11 has, of course, an explicit DestroyNotify event so you know to stop doing things to the affected windows, but requests already in the pipe at the time the destroy is executed will still return errors. The other entries in the error report won't help you much in this case. -Ralph R. Swick DEC/MIT Project Athena