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