Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!mit-eddie!bloom-beacon!dont-send-mail-to-path-lines From: ekberg@asl.dl.nec.COM (Tom Ekberg) Newsgroups: comp.windows.x Subject: Re: BadLength for XDrawLines Message-ID: <9102191559.AA25173@asl.dl.nec.com> Date: 19 Feb 91 15:59:53 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 22 > I am running X11r3 code (HP has not gotten us to R4 yet) on an > HP9000 system and get the following errors upon requesting 16k > points: > > X Protocol error detected by server: BadLength, poly request too > large or internal Xlib length error. > Failed request major op code 67 (X_PolyRectangle) > ..... > > The number of points is an int and I haven't exceeded that. Is this > a bug in X? The limit is smaller than 2^32. I believe the protocol specification limits this to be 2^16-3 points. If you look at the value returned by XMaxRequestSize you can find out what the limit is for the server. The Xlib manual says that this value will be no smaller than 16K bytes. You will have to use the protocol specification to determine how to translate that into numbers of points. -- tom, ekberg@aslss02.asl.dl.nec.com (x3503)