home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!world!eff!enterpoop.mit.edu!hri.com!spool.mu.edu!umn.edu!csus.edu!netcom.com!richm
- From: richm@netcom.com (Richard Mauri)
- Newsgroups: comp.windows.x.motif
- Subject: Re: Help with MrmFetchWidget() and XtDestroy()
- Message-ID: <1992Dec28.154706.14277@netcom.com>
- Date: 28 Dec 92 15:47:06 GMT
- References: <4949@ceylon.gte.com>
- Organization: Netcom Online Communications Services (408-241-9760 login: guest)
- Lines: 25
-
- In article <4949@ceylon.gte.com> mbr0@roger.gte.com (Mark Rosenthal) writes:
- >
- >I have an application in which there can be an arbitrary number of dialog
- >shells created using the same template. I am using UIL and creating the
- >shell and its children with MrmFetchWidget(). When the user clicks on the
- >close button in the dialog, the close callback calls XtDestroy() on the dialog.
- >The next time the user asks for a dialog from the same template and
- >MrmFetchWidget() is called the code crashes with a segmentation violation.
- >
- >Does anybody know of anything to watch out for when using MrmFetchWidget()
- >and XtDestroy()?
- >
- > mbr0@gte.com
-
- Be sure that the returned Widget data structure is initialized to NULL
- before calling MrmFetchWidget(). It states this in the documentation.
- This one gets everyone if they don't watch out!
-
- richm@netcom.com
-
- --
- Richard Mauri // Not ready to face the winter.
- SW Eng / X hack // Pray for wind.
- Trimble Navigation Ltd. // Pay the bills.
- richm@netcom.com // Hope nothing breaks
-