home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / motif / 8232 < prev    next >
Encoding:
Internet Message Format  |  1992-12-28  |  1.5 KB

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