執行Xwindow程式時,發生Error要如何查E … - Linux

Rebecca avatar
By Rebecca
at 2009-06-24T03:51

Table of Contents

※ [本文轉錄自 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又是什麼意思呢?
謝謝。

--
Tags: Linux

All Comments

內網連結問題

Dora avatar
By Dora
at 2009-06-23T22:57
※ 引述《s06yji3 (阿南)》之銘言: : 我使用的作業系統是open SUSE 10.3 : Kernel是 2.6.5-31-default : 內網連結的作業系統都是openSUSE : 主機板是supermicro X7DWA-N : 網卡是用on board的網卡 : Intel® 82575 ...

請問如何找出domain的< 所有子網 ?>

Andrew avatar
By Andrew
at 2009-06-23T22:51
※ 引述《WRlTERT1NA (小妹( ̄⊿ ̄and#34;盛夏之年)》之銘言: : 例如ntu.edu.tw : 可以有ee.ntu.edu.tw, ac.ntu.edu.tw, math.ntu.edu.tw....etc : 我用dig看不到說 atat dns的正解檔有設定正確嗎? 修改完正解檔序號要 ...

如何從自己單機變成網路

Linda avatar
By Linda
at 2009-06-23T22:47
※ 引述《twflyinlove (WOW_MAN)》之銘言: : 各位大大好 : 我本身自己是先架在自己的電腦上(127.0.0.1) : 用localhost這個方式 : 現在要變成放在網路上(供給其他人一起使用) : 我要做哪些部份? : 可以請各位給我方向嗎QQ? : 謝謝 : 在此祝大家:寫程式順利 ...

Re: Linux 相關問題..。

Madame avatar
By Madame
at 2009-06-23T22:45
※ 引述《zong780405 (Tikky)》之銘言: : In Linux, which data structure(s) must be stored on disks? : 選擇一個答案 : A. the super block : B. both of them : C. non of ...

如何從自己單機變成網路

Robert avatar
By Robert
at 2009-06-23T17:18
各位大大好 我本身自己是先架在自己的電腦上(127.0.0.1) 用localhost這個方式 現在要變成放在網路上(供給其他人一起使用) 我要做哪些部份? 可以請各位給我方向嗎QQ? 謝謝 在此祝大家:寫程式順利沒出錯,一路寫到底 - ...