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

  1. Path: sparky!uunet!dove!cam!straw
  2. From: straw@cam.nist.gov (Mike_Strawbridge_x3852)
  3. Newsgroups: comp.windows.x
  4. Subject: selecting in Motif ScrolledList causes core dump
  5. Message-ID: <9956@oak.cam.nist.gov>
  6. Date: 24 Dec 92 13:54:50 GMT
  7. Organization: National Institute of Standards & Technology, Gaithersburg, MD
  8. Lines: 41
  9.  
  10. I posted this to comp.windows.x.motif but have received no responses yet ...
  11.  
  12. I am running this on a Sun 4, SunOS 4.1.3, MIT X11R4 and Motif 1.1.
  13.  
  14. In my application I have a List contained inside a Scrolled Window. The list
  15. has selectionPolicy set to BROWSE_SELECT. Sometimes, but not always, the
  16. following action will cause the application to dump core ...
  17.  
  18. - Press the select mouse button and drag the cursor off the bottom of the
  19.   list. The list scrolls to the bottom of the list and the last item is
  20.   highlighted. ( i.e. the cursor is now outside of the scrolledList widget
  21.   and the last item in the list is highlighted).
  22.  
  23. - Now release the select key.
  24.  
  25. The application dumps core with the following status from dbx:
  26.  
  27.   program terminated by signal SEGV (no mapping at the fault address)
  28.   ClickElement() at 0x65e64
  29.   BrowseScroll() at 0x66214
  30.   DoOtherSources() at 0xf778174c
  31.   XtAppNextEvent() at 0xf7781938
  32.   XtAppMainLoop() at 0xf77799cc
  33.  
  34. Note that it does not crash every time you do this. Most of the time
  35. it calls the XmBrowseSelectionCallback as expected.
  36.  
  37. Does anyone know what going on here? I don't have Motif source. Is this
  38. a bug in Motif 1.1 or have I forgotten to configure something in the
  39. List/ScrolledWindow combination?
  40.  
  41. Thanks.
  42.  
  43. Mike
  44.  
  45. -----------------------------------------------------------------------
  46. NAME:   Michael Strawbridge                     TELE: (301) 975-3852
  47. USMAIL: National Institute of Standards         ARPA: straw@cam.nist.gov
  48.                 and Technology                  UUCP: uunet!cme-durer!straw
  49.         Rm. B-146, Bldg. 225
  50.         Gaithersburg, MD  20899
  51.