home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / 21027 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.5 KB  |  34 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!spool.mu.edu!enterpoop.mit.edu!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
  3. From: adrian@ora.COM (adrian)
  4. Subject: Re: Too Big XCreatePixmap returns ?
  5. Message-ID: <9301112201.AA02029@spike.ora.com>
  6. Sender: root@athena.mit.edu (Wizard A. Root)
  7. Organization: The Internet
  8. Date: Mon, 11 Jan 1993 17:01:35 GMT
  9. Lines: 23
  10.  
  11.  
  12. > Just before you make the pixmap install an XErrorHandler using
  13. > XSetErrorHandler(). If you get an X error the program will go to the function
  14. > you've declared. Remove the error handler afterwards tho!
  15.  
  16. There's a gotcha waiting to getcha here.  Don't forget that
  17. X is asynchronous, so the error will not be reported until
  18. the next time Xlib sends its queue of requests over to the server,
  19. and the server crunches through them to the one containing
  20. the huge pixmap.  In other words, it may be awhile before you
  21. get this error.  If you're not careful, the error handler may
  22. be removed before the error happens.
  23. So you cannot remove the error handler until
  24. you are sure the server has already passed the big pixmap.
  25. Probably the easiest thing to do is not to remove the error handler.
  26.  
  27. *************************************************************
  28. Adrian Nye (314) 531-1231    Editor, The X Resource
  29. O'Reilly & Associates, Inc., Publishers of Nutshell Handbooks
  30. 912 N. Daniel St.             Arlington, VA 22201
  31. Internet:   adrian@ora.com        UUCP:   uunet!ora!adrian      
  32. *************************************************************
  33.  
  34.