2010-04-19 6 views
0

을들이받은하지만 난 그것을 실행하는 동안 다음과 같은 X 윈도우 오류가 점점 오전 동안 X 오류를 가져 오기 :내가 쓴 가지고 GTK + 응용 프로그램을 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

+0

대상 환경은 무엇입니까? 통합 debgger로 SDK를 얻을 수있는 방법이 없을까요? – psychoschlumpf