Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!svin02!svin02.info.win.tue.nl!hans From: hans@ele.tue.nl (& Fleurkens) Newsgroups: comp.windows.x.motif Subject: MessageBox - Free old message string?? Message-ID: Date: 27 Jun 91 09:13:42 GMT Sender: news@svin02.info.win.tue.nl Distribution: comp Organization: Eindhoven University of Technology, Eindhoven, The Netherlands. Lines: 12 I want to show different strings in the same Information Dialog (created with a XmCreateInformationDialog). I can set a new string by using XtSetArg for the XmNmessageString resource and XtSetValues. Is there any need to get the old value of this resource, before setting the new one? Or will the old one be freed automatically? What's the right way to prevent a memory leak here? Hans Fleurkens e-mail: hans@es.ele.tue.nl