Path: utzoo!attcan!uunet!mcsun!hp4nl!tuegate.tue.nl!al.ele.tue.nl!pim From: pim@ele.tue.nl (Pim Buurman) Newsgroups: comp.windows.x.motif Subject: Re: XtGetValues gives Segmentation fault Message-ID: <567@al.ele.tue.nl> Date: 20 Sep 90 13:01:39 GMT Organization: Eindhoven University of Technology, The Netherlands Lines: 25 I asked last week about a problem I had with XtGetValues. The code was: { Dimension width, height; Arg args[2]; XtSetArg(args[0], XmNwidth, &width); XtSetArg(args[1], XmNheight, &height); XtGetValues(w, args, 2); After a long search I found out, that XtGetValues corrupted the stack. This was due to the fact that it used INT's for width and height. However, I had (sloppy) used the default include files (X11.3), which stated that Dimension was a short. Moral of the story: when you don't have X11.4 and Motif 1.1, set explicitly a -I to the motif include files. Pim. -- ______ Pim Buurman, Phone: +(31)40-473238 Email: pim@ele.tue.nl Eindhoven University of Technology, Dept. of Electr. Eng. (ES/EH 7.24) P.O. Box 513, 5600 MB Eindhoven, The Netherlands