Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!rpi!uupsi!psivax!quad1!carl From: carl@quad1.quad.com (Carl Priddy) Newsgroups: comp.windows.x.motif Subject: Re: the "text" of an XmText Widget Summary: text widget value resource Message-ID: <14342@gouda.quad.com> Date: 14 Aug 90 18:41:28 GMT References: <140523@sun.Eng.Sun.COM> Organization: Quadratron Systems Inc, Thousand Oaks Ca Lines: 17 From postnews Tue Aug 14 11:27:10 1990 In article <140523@sun.Eng.Sun.COM>, argv@turnpike.Eng.Sun.COM (Dan Heller) writes: > Perhaps someone from osf and can answer this: > When you set the text widget's "value", you don't need to keep > around it's memory any longer, do you? Dan, No you do NOT need to keep it around any longer. I believe, although I am not sure and have no hope of finding it documented anywhere, that all widgets that have string resources make copies of those strings. I too have experienced no problems after free'ing up the memory that contained them after I have set the values in the widgets. As to whether or not the widgets do the appropriate alloc and frees, one can only hope. I notice that you are from O'Reilly & Co. I am counting on you guys to provide relief for the Motif documentation vacuum. Good luck. carl.