home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.windows.x.motif:8245 comp.windows.x:20607
- Path: sparky!uunet!dove!cam!straw
- From: straw@cam.nist.gov (Mike_Strawbridge_x3852)
- Newsgroups: comp.windows.x.motif,comp.windows.x
- Subject: selecting in Motif ScrolledList causes core dump
- Message-ID: <9967@oak.cam.nist.gov>
- Date: 29 Dec 92 19:50:46 GMT
- Followup-To: comp.windows.x.motif
- Organization: National Institute of Standards & Technology, Gaithersburg, MD
- Lines: 44
-
- 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
-