home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / 21603 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.5 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.055619.10629@nntpserver.chevron.com>
  6. Date: 28 Jan 93 05:56:19 GMT
  7. References: <455@chor-us.Chorus.COM> <1993Jan28.050517.9473@nntpserver.chevron.com>
  8. Sender: news@nntpserver.chevron.com (USENET News System)
  9. Organization: Chevron
  10. Lines: 22
  11.  
  12. In article <1993Jan28.050517.9473@nntpserver.chevron.com> hcrms@porpoise.chvpkh.chevron.com (m s craig) writes:
  13. >I am using XDrawLines to connect points in order to draw curves.
  14. >Each curve consists of 500 points. Graphs that contain 3 or more
  15. >curves are plotted fine, but graphs that only contain only one
  16. >or two curves are only sometimes plotted. In the latter case,
  17. >I may run the program successfully the first time (i.e. the
  18. >one or two curves are plotted), but if I try to immediately run
  19. >it again I get only a blank window, the curves aren't drawn.
  20. >The only way I can get the program to consistently work
  21. >with single-curve graphs is if I put a printf in the for-loop
  22. >that reads the data. (It seems like if I slow it down a bit, it
  23. >works). 
  24. >
  25. >I suspect a buffering problem - I tried putting XFlush and XSync 
  26. >after the XDrawlines but that didn't work. Any suggestions?
  27. >
  28. More info: the problem only occurs when I am running on a remote host
  29. and displaying locally. When I run the program locally I don't have
  30. the problem.
  31.  
  32.     Mitch Craig - hcrms@porpoise.chvpkh.chevron.com
  33.        San Ramon, Calif.
  34.