home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / windows / x / motif / 5914 < prev    next >
Encoding:
Text File  |  1992-08-31  |  2.0 KB  |  54 lines

  1. Newsgroups: comp.windows.x.motif
  2. Path: sparky!uunet!usc!elroy.jpl.nasa.gov!ames!nsisrv!kong!dealy
  3. From: dealy@kong.gsfc.nasa.gov (Brian Dealy - CSC)
  4. Subject: problem subclassing off BulletinBoard for RectObj Children
  5. Message-ID: <1992Aug31.122105.1656@kong.gsfc.nasa.gov>
  6. Keywords: widget RectObj Motif BulletinBoard
  7. Sender: dealy@kong.gsfc.nasa.gov (Brian Dealy - CSC)
  8. Reply-To: dealy@kong.gsfc.nasa.gov (Brian Dealy - CSC)
  9. Organization: Goddard Space Flight Center
  10. Date: Mon, 31 Aug 92 12:21:05 GMT
  11. Lines: 42
  12.  
  13.  
  14.  
  15. -- 
  16.  
  17. Hi, I have written a container widget which I would like to make a subclass ofd
  18. XmBulletinBoard. The widget accepts RectObj subclasses as children and maintains
  19. stacking order for them and distributes events to the children. As a child of 
  20. Bulletin Board I get the following feedback from dbx after it dumps core.
  21.  
  22. warning: object file read error: text address not found
  23. ConvertATranslation() at 0xf7791778
  24. XtInstallAccelerators() at 0xf7791d7c
  25. `Manager`ConstraintInitialize() at 0x23764
  26. CallConstraintInitialize() at 0xf77759a0
  27. CallConstraintInitialize() at 0xf7775978
  28. CallConstraintInitialize() at 0xf7775978
  29. _XtCreate() at 0xf7775d28
  30. _XtCreateWidget() at 0xf7775f80
  31. XtCreateWidget() at 0xf7776010
  32. XtCreateManagedWidget() at 0xf7776034
  33. main() at 0x2ac0
  34.  
  35. this occurs when I add an RectObj subclass to the container. It takes widget children fine.  I have the code segment in my manager widget which says:
  36. #ifdef X11R4_INTRINSICS
  37. static CompositeClassExtensionRec ext;
  38.  
  39. ext.next_extension = NULL;
  40. ext.record_type = NULLQUARK;
  41. ext.version = XtCompositeExtensionVersion;
  42. ext.record_size = sizeof(CompositeClassExtensionRec);
  43. ext.accepts_objects = True;
  44. genManagerClassRec.composite_class.extension = (XtPointer) &ext;
  45. #endif
  46.  
  47. I got this from the athena tools plotter widget and it worked 
  48. fine until I switched from subclassing off constraint to BulletinBoard.
  49.  
  50. A friend says this is a problem with Bulletin Board (or maybe XmManager).
  51. Anybody know about this? any info will be greatly appreciated. Thanks
  52.                    Brian Dealy
  53. dealy@kong.gsfc.nasa.gov
  54.