Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!pasteur!ames!ncar!stout.ucar.edu!thor From: thor@stout.ucar.edu (Rich Neitzel) Newsgroups: comp.windows.x Subject: XReadBitmapFile help Message-ID: <3383@ncar.ucar.edu> Date: 7 Jun 89 20:36:14 GMT Sender: news@ncar.ucar.edu Reply-To: thor@thor.ucar.edu (Rich Neitzel) Organization: Field Observing Facility, NCAR, Boulder, CO Lines: 37 Greetings; My problem is this - I want to read in a cursor bitmap file. I am trying to use XreadBitmapFile. However, I get the following X error message: X Protocol error: BadDrawable, invalid Pixmap or Window parameter Major opcode of failed request: 53 (X_CreatePixmap) Minor opcode of failed request: 0 Resource id in failed request: 0x0 Serial number of failed request: 17 Current serial number in output stream: 18 I looked at my display, drawable and pixmap variables. None are 0 and I use the display and drawable in other places in the code and all is well there. My drawable is actually a window id. If I stuff a bogus id into the window id, that is the returned resource id on the error. However, I am at a loss to understand how it could turn up as 0 ever. HELP! ------------------------------------------------------------------------------- Richard Neitzel National Center For Atmospheric Research Box 3000 Boulder, CO 80307-3000 303-497-2057 thor@thor.ucar.edu Torren med sitt skjegg Thor with the beard lokkar borni under sole-vegg calls the children to the sunny wall Gjo'i med sitt shinn Gjo with the pelts jagar borni inn. chases the children in. -------------------------------------------------------------------------------