Discussion:
Low-level X programming
(too old to reply)
Ken Lee
2003-08-01 04:27:48 UTC
Permalink
When my app receives the PropertyNotify event I wish to look up the new
value of WM_NAME & so I make a XGetText() call, but the window has been
destroyed & hence I get a 'BadWindow' error.
Is there any way to prevent this?
Use an error handler to catch the BadWindow and do something other than exit.

Ken Lee, http://www.rahul.net/kenton/
SCoTT SMeDLeY
2003-08-01 06:19:37 UTC
Permalink
Post by Ken Lee
Use an error handler to catch the BadWindow and do something other than exit.
Is this a standard way of handling these kind of situations?

SCoTT. :)

Loading...