当前位置: 技术问答>linux和unix
程序在32bit ubuntu10.10下正常运行,在64bitubuntu10.10下却出错,help me !
来源: 互联网 发布时间:2016-11-30
本文导语: 偶写了一个程序,在32bit ubuntu10.10下运行正常,在64bit ubuntu10.10下却出错,提示的问题是: The error was 'BadLength (poly request too large or internal Xlib length erro'. (Details: serial 25 error_code 16 request_code 130 minor_cod...
偶写了一个程序,在32bit ubuntu10.10下运行正常,在64bit ubuntu10.10下却出错,提示的问题是:
The error was 'BadLength (poly request too large or internal Xlib length erro'.
(Details: serial 25 error_code 16 request_code 130 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
调试的结果是client端得数据发送不到Server端,在_XReply函数中出错,但是不知道怎么修改。
The error was 'BadLength (poly request too large or internal Xlib length erro'.
(Details: serial 25 error_code 16 request_code 130 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
调试的结果是client端得数据发送不到Server端,在_XReply函数中出错,但是不知道怎么修改。
|
重新编译一下就好了。
|
变量,数据长度问题,32和64上得考虑这个问题