Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!ncar!mephisto!emory!stiatl!srchtec!srchtec.uucp!mra From: mra@srchtec.uucp (Michael Almond) Newsgroups: comp.windows.x Subject: Athena widget set help needed. Message-ID: <190@srchtec.UUCP> Date: 30 Aug 90 19:04:05 GMT Sender: mra@srchtec.UUCP Distribution: usa Organization: search technology, inc. Lines: 29 I'm trying to create a GC for a widget's window. I haven't gotten past the XCreateGC() call as of yet, due to a core dump which provides little information for debugging purposes. I felt that something like the following would create a GC for any widget I passed it, but I haven't had any luck. ;-( GC *theGC; void createGC(Widget w) { XtGCMask mask = 0; XGCValues values; Display *display; Window window; display = XtDisplayOfObject(w); window = XtWindowOfObject(w); *theGC = XCreateGC(display, window, mask, &values); } If anyone could provide me with some help, I would GREATLY appreciate it. --- Michael R. Almond mra@srchtec.uucp (registered) search technology, inc. gatech.edu!stiatl!srchtec!mra Atlanta, Georgia (404) 441-1457 (work)