Article View: comp.windows.x
Article #24820Re: Too Big XCreatePixmap returns ?
From: adrian
Date: Mon, 11 Jan 1993 17:01
Date: Mon, 11 Jan 1993 17:01
22 lines
1529 bytes
1529 bytes
> Just before you make the pixmap install an XErrorHandler using > XSetErrorHandler(). If you get an X error the program will go to the function > you've declared. Remove the error handler afterwards tho! There's a gotcha waiting to getcha here. Don't forget that X is asynchronous, so the error will not be reported until the next time Xlib sends its queue of requests over to the server, and the server crunches through them to the one containing the huge pixmap. In other words, it may be awhile before you get this error. If you're not careful, the error handler may be removed before the error happens. So you cannot remove the error handler until you are sure the server has already passed the big pixmap. Probably the easiest thing to do is not to remove the error handler. ************************************************************* Adrian Nye (314) 531-1231 Editor, The X Resource O'Reilly & Associates, Inc., Publishers of Nutshell Handbooks 912 N. Daniel St. Arlington, VA 22201 Internet: adrian@ora.com UUCP: uunet!ora!adrian *************************************************************
Technical Details
Message-ID:
<9301112201.AA02029@spike.ora.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!enterpoop.mit.edu!bloom-beacon!INTERNET!dont-send-mail-to-path-linesShow Full Headers
Complete Article Headers
Newsgroups: comp.windows.x Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!enterpoop.mit.edu!bloom-beacon!INTERNET!dont-send-mail-to-path-lines From: adrian@ora.COM (adrian) Subject: Re: Too Big XCreatePixmap returns ? Message-ID: <9301112201.AA02029@spike.ora.com> Sender: root@athena.mit.edu (Wizard A. Root) Organization: The Internet Date: Mon, 11 Jan 1993 17:01:35 GMT Lines: 23