home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!lhdsy1!nntpserver.chevron.com!porpoise.chvpkh.chevron.com!hcrms
- From: hcrms@porpoise.chvpkh.chevron.com (m s craig)
- Newsgroups: comp.windows.x
- Subject: Re: Buffering/Flushing problem?
- Message-ID: <1993Jan28.050517.9473@nntpserver.chevron.com>
- Date: 28 Jan 93 05:05:17 GMT
- References: <455@chor-us.Chorus.COM>
- Sender: news@nntpserver.chevron.com (USENET News System)
- Organization: Chevron
- Lines: 17
-
- I am using XDrawLines to connect points in order to draw curves.
- Each curve consists of 500 points. Graphs that contain 3 or more
- curves are plotted fine, but graphs that only contain only one
- or two curves are only sometimes plotted. In the latter case,
- I may run the program successfully the first time (i.e. the
- one or two curves are plotted), but if I try to immediately run
- it again I get only a blank window, the curves aren't drawn.
- The only way I can get the program to consistently work
- with single-curve graphs is if I put a printf in the for-loop
- that reads the data. (It seems like if I slow it down a bit, it
- works).
-
- I suspect a buffering problem - I tried putting XFlush and XSync
- after the XDrawlines but that didn't work. Any suggestions?
-
- Mitch Craig - hcrms@porpoise.chvpkh.chevron.com
- San Ramon, Calif.
-