sdl@aries.lyra.mitre.org (Steven D. Litvinchouk) (05/25/91)
I am having segmentation fault crashes when I attempt to delete items
from an XmList that the user previously selected via the mouse. (This
is with Motif v1.1.)
This happens whether I delete the items via XmListDeleteAllItems, or
via XmListDeleteItemsPos. Here`s a traceback for the latter case:
rigel{102}: gdb test core
GDB 3.5, Copyright (C) 1989 Free Software Foundation, Inc.
There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details.
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "info copying" to see the conditions.
Reading symbol data from /tmp_mnt/home/va/sdl/eos/test/test...done.
Core file is from "test".
Program terminated with signal 11, Segmentation fault.
Type "help" for a list of commands.
(gdb) backtrace
#0 0x23c1c in XmCreateLabelGadget ()
#1 0x29b34 in XmListDeleteItemsPos ()
#2 0x29f8 in sendQueryToDatabase (...) (...)
#3 0x2a50 in performSearch (...) (...)
Error reading memory address 0xf7720a38: Not owner (1).
(sendQueryToDatabase and performSearch are, of course, functions
I wrote.)
If I first deselect the selected items manually (via the mouse), this
problem doesn't occur. But if I use XmListDeselectAllItems to
deselect the selected items, the problem still occurs.
Anyone seen this problem before, or have any ideas?
--
Steven Litvintchouk
MITRE Corporation
Burlington Road
Bedford, MA 01730
(617)271-7753
ARPA: sdl@mbunix.mitre.org
UUCP: ...{att,decvax,genrad,necntc,ll-xn,philabs,utzoo}!linus!sdl
"Where does he get those wonderful toys?"