Path: utzoo!attcan!uunet!lll-winken!csd4.milw.wisc.edu!bionet!agate!ucbvax!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!converse From: converse@EXPO.LCS.MIT.EDU (Donna Converse) Newsgroups: comp.windows.x Subject: Re: using XtIsManaged or XtIsRealized Message-ID: <8904141408.AA20938@expo.lcs.mit.edu> Date: 14 Apr 89 14:08:42 GMT References: <2418@lll-lcc.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Organization: X Consortium, MIT Laboratory for Computer Science Lines: 16 >I get a unix segmentation violation when >I get to the line involving XtIsManaged. The posted code uses XtIsManaged as a test of existence. The function XtIsManaged tests whether an existing widget is managed. If XtIsManaged is passed a nonexisting widget, it is not guaranteed to return false. To test existence, you could explicitly initialize widget variables to NULL at the time of the variable definition, then test that the variable is not null to determine existence. Donna