home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / softsys / khoros / 3160 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  2.3 KB

  1. Path: sparky!uunet!think.com!spool.mu.edu!umn.edu!lynx!pprg.unm.edu!daemon
  2. From: opus@astro.unm.edu (Colby Kraybill)
  3. Newsgroups: comp.soft-sys.khoros
  4. Subject: Re: Problem with xvf_create_form
  5. Message-ID: <42360@pprg.eece.unm.edu.pprg.unm.edu>
  6. Date: 30 Dec 92 22:22:12 GMT
  7. Sender: daemon@pprg.unm.edu
  8. Lines: 96
  9.  
  10. >     (1) did you call xvf_initialize() properly, before the call to
  11. >         xvf_create_form()?
  12.  
  13. Yup, and the display variable has been set.
  14.  
  15. >     (2) is it possible that you are over-writing memory, before the
  16. >         call to xvf_create_form()?
  17.  
  18. I have gone over all the stuff going on before the call to xvf_create_form
  19. and I am reasonably sure that no array ends are being over written.
  20.  
  21. >     
  22. >     (3) are you using any calls to the xvdisplay library before the
  23. >         call to xvf_create_form()?  If so, did you call xvd_initialize()
  24. >         properly before those calls?
  25.  
  26. No calls to any xvdisplay routines yet.  Haven't gotten that far 8).
  27.  
  28.  
  29. I've tracked down exactly where the error is occuring :
  30.  
  31.        glyph_button = XtCreateManagedWidget(label, commandWidgetClass,
  32.                                              parent,arg,i);
  33.  
  34. This is line 795 in KHOROS_HOME/src/xvroutines/Lib/xvforms/wid_util.c.
  35.  
  36. The stack of calls looks like this :
  37. xvf_form_create_glyph_sel
  38. xvf_build_form
  39. run_enterob
  40. main
  41.  
  42. It looks as though the widget it is trying to create is the 'Glyph'
  43. button at this point.
  44.  
  45. At the point of error the values of the arguments are :
  46. label = 0xf46b8 "Glyph"
  47. parent = 0x1326c8  (This is the form->back widget)
  48. arg = (
  49. {
  50.         name  = 0xf4668 "width"
  51.         value = 49
  52. }
  53. {
  54.         name  = 0xf466e "height"
  55.         value = 15
  56. }
  57. {
  58.         name  = 0xf4675 "fromVert"
  59.         value = 0
  60. }
  61. {
  62.         name  = 0xf467e "fromHoriz"
  63.         value = 0
  64. }
  65. {
  66.         name  = 0xf4688 "horizDistance"
  67.         value = 7
  68. }
  69. {
  70.         name  = 0xf4696 "vertDistance"
  71.         value = 7
  72. }
  73. {
  74.         name  = 0xf46a3 "label"
  75.         value = 1001144
  76. }
  77. {
  78.         name  = 0xf46a9 "resizable"
  79.         value = 1
  80. }
  81. {
  82.         name  = 0xf46b3 "font"
  83.         value = 1269496
  84. }
  85. `lxvobjects`xvf_mycreate_glyph_widget`i = 9 (9 args in arg)
  86.  
  87.  
  88. And last but not least, the error was :
  89. signal BUS (alignment error) in Get_GC at 0x60e64
  90. Get_GC+0x14:    ld      [%o0 + 4], %o0
  91.  
  92.  
  93. Any help is most appreciated.
  94.  
  95.  
  96.  
  97.  
  98. --
  99. Colby Kraybill
  100. Department of Physics and Astronomy - Computer Geek Extrodenaire
  101. opus@astro.unm.edu
  102.  
  103.