Motif applications?
[Last modified: Jun 98] Answer: For a general tutorial on X protocol errors, see: http://www.rahul.net/kenton/perrors.html Here are two common problems. First, if you get a BadWindow error showing a 0x0 window ID, you’re probably calling XtWindow() on a widget that is not realized. See the previous subject. Second, a BadMatch error often indicates that the depth of a window or a pixmap is not correct. You could be using a depth 1 pixmap when you should be using a pixmap with the depth of the associated window. Or, you could be creating a new shell with a depth that does not match its visual type or colormap.