Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!spool.mu.edu!mips!apple!portal!cup.portal.com!DaveLee From: DaveLee@cup.portal.com (David Alan Lee) Newsgroups: comp.windows.x.motif Subject: XmList Widget, when (if ever) to free data Message-ID: <42730@cup.portal.com> Date: 28 May 91 05:37:59 GMT Organization: The Portal System (TM) Lines: 20 When, if ever, should one free the list of XmStrings given to a XmList Widget ? It appears safe to free the data after a call to XtSetValues(), with the XmNitems, and XmNitemCount set. However, if I re-set the values of the widget, should I first get the old list via XtGetValues() and free it? Some trial (and mostly error) has shown that it is not safe to free the list returned from XtGetValues(). However, some rumors from a co-worker claim that the internal list stored in an XmList widget do not get freed when re-setting the list values. Is there any truth to this? The documentation (that I have) says absolutly nothing about this. Please E-mail any reply (or copy thereof) to me at the address in the header. -- Dave Lee Email address: David_Alan_Lee@cup.portal.com or DaveLee@cup.portal.com