Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: XtAppCreateShell. What am I doing wrong? Message-ID: <8905261610.AA17950@expo.lcs.mit.edu> Date: 26 May 89 16:10:16 GMT References: <6979@bunny.GTE.COM> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 19 Donna's reply covered the problem I think, but there is another thing or two in here just waiting to bite you... XtOpenDisplay() can return NULL if it is not able to open the display, if you try to pass NULL to XtAppCreateShell() it will probabally seg. fault. You need to check this value to make sure that a non-NULL display is returned. Also, it is usually best to pass NULL as the name of the application, this will cause the toolkit to look for resources using the last component of argv[0] as the application name. This is generally the desired behavior. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213