我编写了一个GTK +应用程序,但运行时出现以下X Window错误:
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中写过这个应用程序。
答案 0 :(得分:1)
我会尝试按照它的建议:使用--sync cmd选项运行应用程序并在调试器中启动它,这样您就可以看到哪一行导致错误。