[問題] 執行Xwindow程式時,發生Error要如何查E …

看板C_and_CPP (C/C++)作者 (BeAFriend)時間16年前 (2009/06/24 03:51), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串1/1
※ [本文轉錄自 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

06/28 20:22, , 2F
謝謝您的提示^_^
06/28 20:22, 2F
文章代碼(AID): #1AGJ9Ei6 (C_and_CPP)
文章代碼(AID): #1AGJ9Ei6 (C_and_CPP)