Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!bionet!agate!ucbvax!alphalpha.com!nazgul From: nazgul@alphalpha.com (Kee Hinckley) Newsgroups: comp.windows.x.motif Subject: Re: Popup of a popup BUG. Message-ID: <901210192016.883@alphalpha> Date: 11 Dec 90 00:20:16 GMT References: <4319@soleil-tx.oakhill.UUCP> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 18 > I create a motif widget called 'button'. This widget pops up another widget > 'popup1' and 'button' is set to insensitive. 'popup1' is a Selection widget. > If I push the help button in 'popup1', I popup the 'popup2' widget, and set > 'popup1' to insensitive. When I am done, I pop down popup2, and set popup1 > to sensitive. Then if I popdown 'popup1' the application crashes. > > Why is that? Because you aren't using Motif 1.1. Seriously. Prior to 1.1, and in fact, prior to patchlevel 14 or so of the R4 Intrinsics, you should never delete a widget. It will work sometimes, but both Motif and the Intrinsics were pretty bad about handling dynamic creating and deletion of widgets. There are problems with space not being freed, there are problems with using space that *has* been freed. All in all it was a real mess. That is the major reason that we switched to 1.1. (Your program, for what it's worth, works fine under my version of 1.1.) -kee