作者lazyworker (BeAFriend)
看板LinuxDev
标题[问题] 执行Xwindow程式时,发生Error要如何查Error code的意义?
时间Wed Jun 24 03:50:04 2009
请教各位网友,
自己目前在写的Xwindow的程式,
但执行到一半会当掉,
终端机有出现错误讯息如下:
The program 'a.out' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 7 error_code 3 request_code 20 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.)
请问其中的error_code我要查何份文件呢?
而serial, request_code, 与minor_code又是什麽意思呢?
谢谢。
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 122.254.11.183