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