home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / 21598 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.2 KB

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