Path: utzoo!attcan!uunet!snorkelwacker!bloom-beacon!ti-csl.csc.ti.COM!ekberg From: ekberg@ti-csl.csc.ti.COM Newsgroups: comp.windows.x Subject: Re: Bad pixmaps Message-ID: <9003201516.AA10589@osage.csc.ti.com> Date: 20 Mar 90 15:16:25 GMT Sender: ekberg@osage.csc.ti.com Organization: The Internet Lines: 20 > Our application allocates and uses pixmaps, but looses its connection > to the server because of invalid Pixmap values. The number of pixmaps > that we can allocate seems to be dependent on the server on which the > application is running. Is there anyway of knowing when the Pixmap > value returned by the server is valid? The server doesn't return anything upon successful completion of the CreatePixmap request. It is the client side of the network that generates the pixmap ID. You don't see this happening because Xlib does it for you. You will get an invalid pixmap ID error (e.g. a Drawable error) when using an ID that hasn't been returned from the XCreatePixmap function. This error can also be generated when a pixmap is freed by the FreePixmap request and then used anyway, for example in a drawing request. The FreePixmap request will be successful, but the drawing request will generate a Drawable error. I have had the latter error in C++ when a destructor is run `for me' to destroy something and then I try and use it anyway. -- tom (aisle C-4Q), ekberg@csc.ti.com