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

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