Path: utzoo!attcan!uunet!husc6!bloom-beacon!ATHENA.MIT.EDU!kit From: kit@ATHENA.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: X Protocol error? What causes it? Message-ID: <8903071818.AA01720@DORA.MIT.EDU> Date: 7 Mar 89 18:18:39 GMT References: <347@zeus.hf.intel.com> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 37 [ (Martin Wilde) writes: ] > The recently posted xpaint program causes a server error when > ran on my R2 server. There was no compile errors and bad > warnings. The following is the output spewn by the server: [ text deleted ] > I have not been able to find any documentation explaining what > this means. Can someone help me out? This means that one of your Xlib calls passed something to the server that it didn't like. I find that is usually easiest to just find what line of code failed with a debugger like dbx or gdb, and take a look at it. There is usually an obvious mistake, like createing a window if zero width or height. CAUTION: Make sure that you are running you application in synchronous mode or the line of code in which your code exited will be meaningless. To synchronize you appication with the Xserver use XSynchronize(). If you are using the X Toolkit the you can use the command line option -synchronize. Chris D. Peterson MIT X Consortium / Project Athena Net: kit@athena.mit.edu Phone: (617) 253 - 1326 USMail: MIT - Room E40-321 77 Massachusetts Ave. Cambridge, MA 02139 ------- End of Unsent Draft