home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.motif
- Path: sparky!uunet!nervous!pizzi
- From: pizzi@nervous.com (Riccardo Pizzi)
- Subject: Re: Bus error with XmList
- Message-ID: <1992Nov18.095931.188@nervous.com>
- Reply-To: pizzi@nervous.com (Riccardo Pizzi)
- Organization: The Nervous XTC Public Access Unix System, Rimini, ITALY
- References: <1doh4sINN30o@usenet.INS.CWRU.Edu>
- Distribution: inet
- Date: Wed, 18 Nov 92 09:59:31 GMT
- Lines: 23
-
- In article <1doh4sINN30o@usenet.INS.CWRU.Edu> mxa11@po.CWRU.Edu (Madhavi Ahuja) writes:
-
- >To delete all the items in the list I use the following code
- >XmListDeselectAllItems(list)
- >XmListDeleteAllItems(list)
- >XtSetArg(arg[0], XmNitemCount, 0)
- >XtSetArg(arg[1], XmNselectedItemCount, 0);
- >XtSetValues(list , arg, 2)
- >The first time this code gets executed everything is fine
- >The second time it gives me a bus error. I don't need to
- >set the item count and the selected item count but
- >what I don't understand is why it should die the second
- >time around !!!! Please Help
-
- Are still some items in the List the 2nd time you execute this piece of code?
- Maybe the Motif toolkit doesn't like the fact you are doing an XmListDeleteAll
- on an empty List.
-
- Rick
- --
- Riccardo Pizzi @ the Nervous XTC Public Access Unix System, Rimini, ITALY
- E-Mail -> pizzi@nervous.com <*> Bang-path -> uunet!nervous!pizzi
- Nervous XTC, the home of the UniBoard package * Data: +39-541-27135 HST/PEP/V32
-