Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!samsung!uunet!mcsun!ukc!tcdcs!swift.cs.tcd.ie!gteo From: gteo@swift.cs.tcd.ie Newsgroups: comp.windows.x Subject: Memory Deallocation of XtDestroyWidget? Message-ID: <1990Dec13.122714.7669@swift.cs.tcd.ie> Date: 13 Dec 90 12:27:14 GMT Organization: Computer Science Department, Trinity College Dublin Lines: 22 Hello, I am looking into the memory usage by the Motif and Xt. What I did was to load in some 100 push button widgets at run-time (invoked using Callback) from a UID file, then destory these widgets on another press of a button. However,the SZ and RSS have increased rather than decreased. What have I done wrong? I thought the XtDestroyWidget is to destroy the widget and free the memory. The size of the SZ and RSS are as follows: SZ RSS 1200 720 /* With Two push buttons on screen */ 1280 820 /* Loaded another 98 push buttons to make 100 */ 2184 1728 /* After the 98 push buttons have been destroyed and the display is left with the initial 2 buttons */ Thanks in Advance Ghee Teo Trinity College, Dublin 2, Ireland.