home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / fj / maillis / xwindow / 18967 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  2.3 KB

  1. Path: sparky!uunet!wupost!spool.mu.edu!darwin.sura.net!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
  2. From: straw@cam.nist.gov (Mike_Strawbridge_x3852)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: selecting in Motif ScrolledList causes core dump
  5. Message-ID: <1992Dec30.004420.18522@sm.sony.co.jp>
  6. Date: 30 Dec 92 00:44:20 GMT
  7. Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
  8. Distribution: fj
  9. Organization: National Institute of Standards & Technology, Gaithersburg, MD
  10. Lines: 49
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: 29 Dec 92 19:50:46 GMT
  14. Message-Id: <9967@oak.cam.nist.gov>
  15. Newsgroups: comp.windows.x.motif,comp.windows.x
  16. Sender: xpert-request@expo.lcs.mit.edu
  17.  
  18. I got some more information on my problem since I tried it on a system
  19. with the Motif source code.
  20.  
  21. I am running this on a Sun 4, SunOS 4.1.3, MIT X11R4 and Motif 1.1.4.
  22.  
  23. In my application I have a ScrolledList. The list has selectionPolicy set 
  24. to BROWSE_SELECT. Sometimes, but not always, the following action will 
  25. cause the application to dump core ...
  26.  
  27. - Press the select mouse button and drag the cursor off the bottom of the
  28.   list. The list scrolls to the bottom of the list and the last item is
  29.   highlighted. ( i.e. the cursor is now outside of the scrolledList widget
  30.   and the last item in the list is highlighted).
  31.  
  32. - Now release the select key.
  33.  
  34. The application dumps core with the following status from dbx:
  35.  
  36.   program terminated by signal SEGV (no mapping at the fault address)
  37.   ClickElement() at 0x65e64
  38.   BrowseScroll() at 0x66214
  39.   DoOtherSources() at 0xf778174c
  40.   XtAppNextEvent() at 0xf7781938
  41.   XtAppMainLoop() at 0xf77799cc
  42.  
  43. Note that it does not crash every time you do this. Most of the time
  44. it calls the XmBrowseSelectionCallback as expected.
  45.  
  46. The bad variable in ClickElement() is lw->list.InternalList. It is
  47. referenced and has a value of NULL!
  48.  
  49. Does anyone know what my problem is? Is this a bug in Motif 1.1.4 or have 
  50. I forgotten to configure something in the List/ScrolledWindow combination?
  51.  
  52. Thanks.
  53.  
  54. Mike
  55.  
  56. -----------------------------------------------------------------------
  57. NAME:   Michael Strawbridge                     TELE: (301) 975-3852
  58. USMAIL: National Institute of Standards         ARPA: straw@cam.nist.gov
  59.                 and Technology                  UUCP: uunet!cme-durer!straw
  60.         Rm. B-146, Bldg. 225
  61.         Gaithersburg, MD  20899
  62.