home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / openloo / 4997 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.9 KB

  1. Xref: sparky comp.windows.open-look:4997 alt.toolkits.xview:1192
  2. Newsgroups: comp.windows.open-look,alt.toolkits.xview
  3. Path: sparky!uunet!cs.utexas.edu!torn!utzoo!censor!animal!alex
  4. From: alex@animal.Bell.CA (Alex Laney)
  5. Subject: Re: Mem leaks in Xview?
  6. Message-ID: <C0Jv1n.5BI@animal.er.bell.ca>
  7. Followup-To: comp.windows.open-look,alt.toolkits.xview
  8. Sender: news@animal.er.bell.ca
  9. Organization: Bell Canada, Ottawa, Ontario
  10. X-Newsreader: TIN [version 1.1 PL8]
  11. References: <BUZZ.93Jan6090422@lion.bear.com>
  12. Date: Fri, 8 Jan 1993 19:20:11 GMT
  13. Lines: 42
  14.  
  15. Buzz Moschetti (buzz@bear.com) wrote:
  16. : If you hope to see your process memory usage drop by 4k when you
  17. : deallocate during PANEL_LIST_DELETE, you won't.  Memory allocated by the
  18. : process cannot be returned to the pool -- that's Un*x, not X or XView.
  19.  
  20. But why doesn't it get re-used? Someone else has mentioned to me that
  21. X11R4 leaks memory. How about X11R5?
  22.  
  23. To the previous poster:
  24.  
  25. That wasn't the actual code, I always null terminate xv_set() calls.
  26.  
  27. And an OH YES (OY):
  28.  
  29. The mem leak occurs (or is more pronounced) when I use the
  30. PANEL_LIST_FONT attribute:
  31.  
  32. xv_set(list,
  33.        PANEL_LIST_INSERT, i, 
  34.        PANEL_LIST_FONT, i, fixed_font, 
  35.        PANEL_LIST_STRING, i, string, 0);
  36.  
  37. later, when the string data changes I do:
  38.  
  39. xv_set(list,
  40.        PANEL_LIST_STRING, i, string, 0);
  41.  
  42. And the mem allocated jumps by 4k approx.
  43.  
  44. I can't convince the powers that be to get a source copy of the XView
  45. toolkit. If only to look at what's going on internally. My guess is the
  46. process of drawing/allocating pixmaps/whatever is messed up. They are not
  47. being re-used.
  48.  
  49. I can understand that the list is not designed for dynamic data like this, but
  50. what else is there in XView?
  51.  
  52. --
  53. Opinions expressed are my own, and are not necessarily those of Bell,BCE,etc.,
  54. or any corporation, agency or association I may be affiliated with.
  55.   Alex Laney, Independent User Interface Guru, IWS/TRACS Project.
  56.   Addr: xela@pinetree.org
  57.