Submitted by Anonymous on Fri, 03/28/2003 - 00:17.
Hi ,
I am getting this message while executing my application
X Error of failed request BadLength (poly request too large or internal Xlib length error)
Major opcode of failed request 74 (X_PolyText8)
Serial number of failed request 1460882
Current serial number in output stream 1460882
Application is a very big one. i dont know why i get this message.
Mr.kenton Lee, writes in one of his forums that , it may be because of over writing into x resources memory location, i dont what it means, can somebody help , its urgent.
i have some memory leaks in my application , but i am taking care of it, i have a global widget in my application, will this be a problem.
thank you
ragu
Sat, 03/29/2003 - 09:19#1
ICS_support
X Error : Bad Length
It`s possible. Usually, you wouldn`t see this error. The code for XDrawText or XDrawString handles the packaging of the requests into reasonable sizes. In fact, I don`t even see that BadLength is an error which is produced by the PolyText8 request. That is a clue that you`ve mucked with the Xlib internals, either through memory-overwrites or by using multiple threads when you haven`t turned those on.
For memory-overwrites, use such tools as Purify or AcquaProva to track down out-of-bounds memory writes.
Wed, 04/02/2003 - 21:42#2
Anonymous
X Error : Bad Length
thanks ICS_Support , i have solved the problem , there was some memory bug and i cleared it using Insure++