[comp.windows.x] XMaxRequestSize

gjw@spurr.wr.usgs.GOV (Gregory J. Woodhouse) (01/31/91)

The application I'm writing needs to determine the maximum number of
lines that can be drawn with a single call to XDrawLines.  In the O'Reilly
manual it says this number is XMaxSizeRequest(display) - 3.

HOWEVER, XMaxSizeRequest is neither mentioned in the protocol reference
manual or the Xlib reference manual.  Anyway, my program compiles without
any problems (meaning we do have such an animal) but dies with a segment-
ation violation as soon as it calls XMaxSizeRequest, which leads me to
conclude that I'm not passing the right arguments -- if indeed  this is
the right function at all.

Do any of you know what is going on here?  What is the proper procedure
under standard X11R4 for determining how many lines can be drawn using
XDrawLines?  What, then is this XMaxSizeRequest, and why isn't it
documednted?  I'm using Openwindow 2.0 under SunOS 4.1 .

Thanks in advance!

Gregory Woodhouse
gjw@ags.wr.usgs.gov 

converse@expo.lcs.mit.EDU (01/31/91)

> HOWEVER, XMaxSizeRequest is neither mentioned in the protocol reference
> manual or the Xlib reference manual.

You spelled it correctly in the subject line.
See Appendix C of the protocol document.