disappearing text?

Dan Schreiber dan at gistdev.gist.com
Tue May 7 04:06:29 AEST 1991


	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 at 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 ?
-----------------------------------------------------------------------------



More information about the Comp.sys.sgi mailing list