home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!apple!mumbo.apple.com!apple!dierks
- From: absurd@applelink.apple.com (Tim Dierks, software saboteur)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Repeated GetCIcon/PlotCIcon calls
- Message-ID: <absurd-280792170546@dierks.apple.com>
- Date: 29 Jul 92 00:09:18 GMT
- References: <m0m7vfN-000FO0C@bagpipe.reed.edu> <36915@unix.SRI.COM> <1992Jul16.234146.41639@kuhub.cc.ukans.edu>
- Sender: usenet@Apple.COM
- Followup-To: comp.sys.mac.programmer
- Organization: MacDTS Misfits
- Lines: 26
-
- In article <1992Jul16.234146.41639@kuhub.cc.ukans.edu>,
- ozma@kuhub.cc.ukans.edu wrote:
- >
- > In article <36915@unix.SRI.COM>, mxmora@unix.SRI.COM (Matt Mora) writes:
- > > In article <m0m7vfN-000FO0C@bagpipe.reed.edu> bagpipe@reed.edu!bagpipe.reed.edu!pcalahan (Patrick John Calahan) writes:
- > >
- > >>IMV says that you shouldn't call PlotCICon before each GetCIcon because
- > >>it overhead will build up in the resource map. Makes sense to me...that
- > >>seems to be happenening when my system crashes after plotting some number
- > >>of icons...
- >
- > > You could mark them purgeable. But I don't think that really works. I think
- > > there is a bug with cicns or something because I tried to get rid of the
- > > memory but it would still fill up the heap. I'm using ploticonid now
- > > (tech note #30x) and it works fine.
- >
- > I believe ReleaseResource() after every PlotCIcon will do the trick.
- >
- Actually, the appropriate call is DisposCIcon(), which will dispose of all
- the various handles associated with a color icon. ReleaseResource() would
- not release all the handles; in fact, I think it would be in error, because
- I'm pretty sure that a CIconHandle in memory is not a resource handle; it's
- constructed from one.
-
- Tim Dierks
- MacDTS, but I speak for the trees
-