看板 Programming 關於我們 聯絡資訊
※ [本文轉錄自 LinuxDev 看板] 作者: 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 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.254.11.183
zlw:為什麼這篇重複的會被轉信進來... 124.8.143.208 06/25 12:50