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

By Rebecca
at 2009-06-24T03:51
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又是什麼意思呢?
謝謝。
--
作者: 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
Related Posts
內網連結問題

By Dora
at 2009-06-23T22:57
at 2009-06-23T22:57
請問如何找出domain的< 所有子網 ?>

By Andrew
at 2009-06-23T22:51
at 2009-06-23T22:51
如何從自己單機變成網路

By Linda
at 2009-06-23T22:47
at 2009-06-23T22:47
Re: Linux 相關問題..。

By Madame
at 2009-06-23T22:45
at 2009-06-23T22:45
如何從自己單機變成網路

By Robert
at 2009-06-23T17:18
at 2009-06-23T17:18