Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!rutgers!ub!acsu.buffalo.edu From: cchang@acsu.buffalo.edu (Chengping Chang) Newsgroups: comp.windows.x.motif Subject: Xm & Memory: help needed Keywords: Xm, Widgets, Memory Message-ID: <49973@eerie.acsu.Buffalo.EDU> Date: 8 Dec 90 16:53:10 GMT Sender: news@acsu.Buffalo.EDU Organization: SUNY Buffalo Lines: 26 Nntp-Posting-Host: autarch.acsu.buffalo.edu I am programming in Xm under SCO UNIX in a 386 box with 16 Meg memory. After I run several large programs, I use up all the memory and system starts memory paging, which slows down system dramatically. I hope someone can shed some light on the following questions: 1) The size of motif programs seems abnormal huge: a compiled execute file as simple as "Hellow World" occupies almost 1 mega bytes. I do not know whether the problem is unique to SCO UNIX. Is there any way to reduce the size of the program? How it works at the other environments. 2) I have several huge programs each with hundreds of Widgets. Atter I load some of my programs, the numerous widgets created engulf all the system memory, and the system performance deteriorates. I have already tried to reuse, reconfigure the windows as much as possible, but I still have scores of windows and hundreds of Widgets. For performance sake, I create all the widgets at start up, leave them there, just change attributes, managed and unmanaged them according to user's response. Am I terribly wrong? Thanks in advances. Hweida Jian, 12/07/90