Newsgroups: comp.windows.x.motif
Path: utzoo!censor!geac!sq!sqwest!brad
From: brad@sqwest.sq.com (Brad Might)
Subject: Re: XmScrolledList explodes
Message-ID: <1990Dec18.173824.3711@sqwest.sq.com>
In-reply-to: nick@esacs.UUCP's message of 17 Dec 90 15:21:52 GMT
Organization: SoftQuad Inc.
References: <1941@beguine.UUCP> <22@esacs.UUCP>
Date: Tue, 18 Dec 90 17:38:24 GMT





>	   Hey, not so fast. That "outrageous" 30174 is probably 
>   an overwritten piece of memory. I remember tracking down a few
>   problems with XmListDeletePos, especially when you delete the
>   last item on the list. The best advice is to set the itemCount
>   to 0 (if you want to remove everything from the list), and
>   use 1.1 (if you want the list to work correctly). By the way,
>   I believe you would have no problems if you copy the array of
>   items (XmNitems), and put it back with SetValues.
>
>					   - nick -
>


	if you set itemCount to 0, do you also have to 
	delete the list items, does the widget delete them,
	or have you thrown them to the wolves ?

brad
-- 
Brad Might                                      brad@sq.sq.com 
SoftQuad Inc.                                   {utzoo,uunet}!sq!brad
						
321-9801 King George Hwy. Surrey, BC. V3T 5H5   (604) 585-1999
