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

  1. Xref: sparky comp.windows.open-look:4976 alt.toolkits.xview:1184
  2. Newsgroups: comp.windows.open-look,alt.toolkits.xview
  3. Path: sparky!uunet!island!coney!hue
  4. From: hue@island.COM (Pond Scum)
  5. Subject: Re: Mem leaks in Xview?
  6. Message-ID: <hue.726392843@coney>
  7. Sender: usenet@island.COM (The Usenet mail target)
  8. Organization: Island Graphics Corp.
  9. References: <C0EJr7.Dny@animal.er.bell.ca> <BUZZ.93Jan6090422@lion.bear.com>
  10. Date: Thu, 7 Jan 1993 07:47:23 GMT
  11. Lines: 16
  12.  
  13. buzz@bear.com (Buzz Moschetti) writes:
  14. >If you hope to see your process memory usage drop by 4k when you
  15. >deallocate during PANEL_LIST_DELETE, you won't.  Memory allocated by the
  16. >process cannot be returned to the pool -- that's Un*x, not X or XView.
  17.  
  18. It's your malloc, not UNIX.  I have an application that runs on SunOS 4.1.x
  19. and it sometimes grows to 60 or 70MB when the user does certain operations,
  20. and then shrinks to two or three megabytes when the operations complete
  21. and resources are freed.
  22.  
  23. However, from what I can tell, there is a 20 byte leak every time you
  24. xv_create something.  It looks like xv_destroy doesn't free that twenty
  25. bytes.  Purify tells me it's in generic_init, which I guess is the init
  26. function for the base XView class.
  27.  
  28. -Jonathan        hue@island.COM
  29.