home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / x / motif / 7543 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.4 KB  |  36 lines

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