Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!gistdev!dan From: dan@gistdev.gist.com (Dan Schreiber) Newsgroups: comp.sys.sgi Subject: disappearing text? Message-ID: <1171@gistdev.gist.com> Date: 6 May 91 18:06:29 GMT Distribution: comp Organization: Global Information Systems Technology Inc., Savoy, IL Lines: 42 I'm having a very strange problem with printing out text strings to a graphics window. The problem is that part of a text string is missing, or sometimes the whole string, after drawing the window. It happens rarely enough to be non-reproducible, but often enough to be concerned about it. I am using the font manager most of the time, where I get a font handle, scale the font, then use fmsetfont() and fmprstr() to print the text. I also have my own window manager that reads queue events and routs them to the correct window. It is a strange problem in that most of text will be output, but sometimes one line will be missing, or sometimes even parts of a line will be missing! (also, I'm using doublebuffer mode, and I've seen the problem on all the windows in my application, not just one isolated window). My temporary fix is to queue MIDDLEMOUSE and whenever I see text missing, I force a redraw of the window by having the window manager redraw a window when MIDDLEMOUSE is clicked over it. This will always draw the missing portion of the text (but sometimes a different portion will be missing!) There is also another graphics program running at the same time, and I am wondering if the problem could be processes colliding in the graphics system? Perhaps there is a queue event that I am missing somewhere? I do handle REDRAW events, and the default for any unrecognized queue event is to redraw the window. What could possibly cause this problem? I realize that my description of the problem is very sketchy, but it happens so randomly that I can't be any more specific. I'm posting this in the hope that someone has seen a problem like this before and can at least point me in some direction, because I'm baffled! I'm using a PI, 3.3.1 Thanks in advance, ----------------------------------------------------------------------------- Dan Schreiber dschreib@gistdev.gist.com Global Information Systems Technology, Inc. 1800 Woodfield Dr. "Morality is 10% intention Savoy, IL 61874-9505 and 90% lack of opportunity" (217) 352-1165 - who knows ? -----------------------------------------------------------------------------