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