看板 LinuxDev 關於我們 聯絡資訊
請教各位網友, 自己目前在寫的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