home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / intrinsi / 693 < prev    next >
Encoding:
Text File  |  1992-12-30  |  2.5 KB  |  64 lines

  1. Newsgroups: comp.windows.x.intrinsics
  2. Path: sparky!uunet!cs.utexas.edu!uwm.edu!spool.mu.edu!yale.edu!yale!mintaka.lcs.mit.edu!expo.lcs.mit.edu!converse
  3. From: converse@expo.lcs.mit.edu (Donna Converse)
  4. Subject: Re: core dump with Form widget
  5. Message-ID: <1992Dec30.220710.1383@mintaka.lcs.mit.edu>
  6. Keywords: Form widget, XtDestroyWidget
  7. Sender: converse@excess.lcs.mit.edu (Donna Converse)
  8. Organization: X Consortium, MIT Laboratory for Computer Science
  9. References:  <1992Dec23.091102.16657@news.th-darmstadt.de>
  10. Date: Wed, 30 Dec 1992 22:07:10 GMT
  11. Lines: 51
  12.  
  13.  
  14. > Our system is: SunOS 4.1.1, X11R4 on sun4c
  15. > We have got a menu with callbacks poping up Popup-Shells. These Shells contain
  16. > a Form-widget, which in turn contains some labels, buttons, a scrollbar and a 
  17. > list widget. 
  18. > After leaving the popup, we use XtDestroyWidget on the popup-shell widget. 
  19. > Next time a menu item is selected, all widgets (including the popup shell) 
  20. > are created once again.
  21. > So far, so good ! It works well for the first time, perhaps for the second, too
  22. > but then we receive a "Segmentation fault (core dumped)" or a Bus error.
  23.  
  24.  
  25. Fixed in R5.
  26.  
  27. ------- Forwarded Message
  28.  
  29. Date: 12 Apr 91 13:13:34 GMT
  30. From: rod@scooter.rosemount.com (Rodney Drenth)
  31. Organization: Rosemount Industrial
  32. Subject: Error: XmuCvtStringToWidget
  33. To: xpert@expo.lcs.mit.edu
  34.  
  35. An error exists in the way the String to Widget Conversion routine is
  36. registered with the resource converter in the Athena Form WIdget.
  37. The resource converter should not cache conversions, but does. Under
  38. certain circumstances it will cause sporatic bus errors and segmentation
  39. faults. 
  40.  
  41. The problem affects the fromVert and fromHoriz resources in the Athena
  42. Form widget.  If these are specified in a resource file (not in a program)
  43. and if the form widget and its children can be destroyed and re-created, it is
  44. possible for the widget ID of the form widget to stay the same but the
  45. Widget ID's of the children to be different.  When this occurs, and
  46. because the Name To Widget conversion is cached, the resource conversion
  47. returns incorrect values, which cause segmentation faults and core dumps.
  48.  
  49. The problem can be corrected by either not specifying the fromHoriz and
  50. fromVert resources in resource files, or by making a copy of the 
  51. XmuCvtStringToWidget function, modifying it so that it is a new type
  52. resource converter, and changing the ClassInitialize function in the
  53. Athena Form Widget to install your revised StringToWidget function with
  54. XtCacheNone specified.
  55.  
  56. Rodney Drenth
  57.  
  58. ------- End of Forwarded Message
  59.  
  60.  
  61. Donna Converse
  62. MIT X Consortium
  63.