Xref: utzoo comp.windows.x:29274 comp.windows.x.motif:1140 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ingr!b11!doyle From: doyle@b11.ingr.com (Doyle Davidson) Newsgroups: comp.windows.x,comp.windows.x.motif Subject: Gadgets and illegal Xt functions Keywords: Xt Gadgets Message-ID: <9349@b11.ingr.com> Date: 8 Nov 90 19:41:05 GMT Organization: Intergraph Corp. Huntsville, AL Lines: 29 I was debugging a Motif application that uses gadgets that suddenly core dumps when built under Motif 1.1 (I personally never say it run under 1.0) I discovered that the error was due to the use of XtDisplay() and passing it a PushButtonGadget. Further investigation reveals that the XtDisplay() macro is redefined in to handle gadgets but the application was not including this file. I didn't think an application needed too. So my questions are: 1) Should I be including XmP.h in my application? (Obviously yes, but am I SUPPOSED to?) 2) Should that macro (and potentially others) have been in Xm.h instead? 3) Won't it still blow up if I call the libXt function instead? Doyle ------------------------------------------------------------------ Doyle C. Davidson | Intergraph Corp. | These comments are... Workstation Graphics Standards | 1 Madison Industrial Park | Huntsville, AL 35806 | (205) 730-2000 | X-clusively my own. | ..!uunet!ingr!doyle | ------------------------------------------------------------------