home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / x / 19466 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.9 KB  |  46 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!mcsun!sun4nl!sci.kun.nl!cs.kun.nl!leonp
  3. From: leonp@cs.kun.nl (Leon Pillich)
  4. Subject: Anybody familiar with this problem?
  5. Message-ID: <By66xE.6JJ@sci.kun.nl>
  6. Keywords: Xlib calls, Overloading X servers, Errors, Crash
  7. Sender: news@sci.kun.nl (NUnet News Owner)
  8. Organization: University of Nijmegen, The Netherlands
  9. Date: Mon, 23 Nov 1992 13:03:13 GMT
  10. Lines: 34
  11.  
  12. I have a nasty problem which I need to solve real soon.
  13. I hope that some of the X wizards on the net are familiar with it.
  14.  
  15. The problem is this:
  16. I have a fairly complex x program, using multiple windows etc., and
  17. I want to draw in some window. The problem is that I do not want to
  18. simply draw an object and then wait for user action, but that I want
  19. to be able to draw a lot of objects on a timer interrupt based routine.
  20. I figured out how to do the timer interrupt (i.e. I use signals, and generate
  21. an artificial timer event for my event loop). However when the timer interval
  22. is fairly small, say 100 times/second (this means drawing graphical objects 
  23. 100 times / second), then the X Servers sends some error message to 
  24. my application. This message is sometimes something like
  25. BadDrawable, but another time it will be BadRequest or BadLength (or anything).
  26.  
  27. What am I doing wrong?
  28. Can it be that I'm overflowing the X Server, i.e. I'm sending more
  29. requests in one second then the server can handle and that this way after
  30. a certain time the servers internal request buffer is overflown?
  31. If this is the case there should be a solution by installing some smart
  32. after function, or isn't there any solution to this problem?
  33.  
  34. Is anybody familiar with this problem and does someone know a solution
  35. for it?
  36.  
  37. I'll be graftefull for any help.
  38.  
  39.  
  40. Leon Pillich
  41. University of Nijmegen, Holland
  42. email: leonp@cs.kun.nl
  43. -------------------------------------------------------------
  44.  Life is what's happening when you're making other plans ...
  45.                                       John Lennon
  46.