Path: utzoo!attcan!uunet!husc6!bloom-beacon!ardent.UUCP!mlp
From: mlp@ardent.UUCP (Mark Patrick)
Newsgroups: comp.windows.x
Subject: XDrawText in Xlib
Message-ID: <8807100049.AA24660@gr.ardent.com>
Date: 10 Jul 88 00:49:03 GMT
Sender: daemon@bloom-beacon.MIT.EDU
Organization: The Internet
Lines: 16

Today we had a problem with XDrawText. The same program which had worked
in a previous version of our system suddenly got XIO Errors following a
call to XDrawText.  After several fruitless experiments it turned out that
the server was getting a huge request from the client which was too big
for its buffers and the server then killed the client.  This huge request
was, it turns out, generated by an uninitialized `delta' field in the 
XTextItem structure.  This field allows for horizontal spacing between items.
It appears that XDrawText generates different sized requests based on this
value!!  Although the problem was in the client program and not in Xlib
or the X server I have a hard time in understanding why the delta value
is not simply passed on to the server but rather affects the size of
the request.  Does anyone have any ideas?

Mark Patrick
Ardent Computer 
uunet!ardent!mlp