程序在32bit ubuntu10.10下正常运行,在64bitubuntu10.10下却出错,help me !

想游泳的鱼 2011-05-17 05:34:41
偶写了一个程序,在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函数中出错,但是不知道怎么修改。
...全文
78 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
想游泳的鱼 2011-05-19
  • 打赏
  • 举报
回复
这个也考虑过,但是变量的定义都是用的linux内部定义的CARD8 CARD32 例如
typedef struct{
CARD8 reqType;
CARD8 GammaReqType;
CARD16 length B16;
CARD32 result;
}xVIAGFXGAMMAStateReq;
yong_f 2011-05-18
  • 打赏
  • 举报
回复
重新编译一下就好了。
「已注销」 2011-05-18
  • 打赏
  • 举报
回复
变量,数据长度问题,32和64上得考虑这个问题
想游泳的鱼 2011-05-18
  • 打赏
  • 举报
回复
没有的,我重新编译了好几次。

23,120

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧