2010-04-19 34 views
0

我寫了一個GTK +應用程序,但我得到的同時運行它下面的X Window錯誤:獲取X錯誤,而乳寧GTK +應用

 
    The program 'TestApp' received an X Window System error. 
    This probably reflects a bug in the program. 
    The error was 'BadMatch (invalid parameter attributes)'. 
     (Details: serial 222 error_code 8 request_code 2 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.) 

什麼可能是這個錯誤的原因是什麼?我已經在C中編寫了這個應用程序。

回答

1

我會嘗試這樣做:使用--sync cmd選項運行應用程序並在調試器中啓動它,以便您可以看到哪一行會導致錯誤。

+0

但我沒有在該目標環境中的調試器。 – User7723337 2010-04-19 07:50:13

+0

哪個目標環境是它?有沒有辦法獲得某種SDK與集成debgger? – psychoschlumpf 2010-04-22 09:16:53