Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!elroy.jpl.nasa.gov!ames!dftsrv!nssdca.gsfc.nasa.gov!njacobs From: njacobs@nssdca.gsfc.nasa.gov (Nick Jacobs) Newsgroups: comp.windows.x Subject: X programming question Message-ID: <4577@dftsrv.gsfc.nasa.gov> Date: 11 Mar 91 20:45:15 GMT Sender: news@dftsrv.gsfc.nasa.gov Reply-To: njacobs@nssdca.gsfc.nasa.gov Lines: 16 I'm new to X Window programming ... I typed in the example program "helloworld.c" from Oliver Jones' book, "Introduction to the X Window system", compiled, linked with the libs on a Sun, and ran it using a remote server for the display (eXodus on a Mac, not that it should matter). It does what it is supposed to do, except that when I tell it to quit by hitting 'q', it crashes instead of terminating cleanly. The error message is: [2] Bus error xhello core dumped (I called it xhello). All it does when it gets a 'q' that is different from any other keypress (which it correctly ignores) is to call XFreeGC, XDestroyWindow, XCloseDisplay and exit. Does anyone have any idea why it should crash?? Nick