Path: utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!uw-beaver!tektronix!sequent!mntgfx!tomc
From: tomc@mntgfx.mentor.com (Tom Carstensen)
Newsgroups: comp.sys.mac
Subject: Purgable blocks in the heap
Keywords: HPurge HNoPurge heap resources
Message-ID: <1987Dec15.143915.593@mntgfx.mentor.com>
Date: 15 Dec 87 22:39:10 GMT
Organization: Mentor Graphics Corporation, Beaverton Oregon
Lines: 24

While I was thumbing through my TMON manual the other day,
I read through the section on the heap.  There is on option
in TMON to continually purge purgable-blocks from the heap.

The manual stated the most Macintosh application DO NOT pass
this test, because they still expect things they loaded into 
memory to be there.

My question is, is it necessary to call HNoPurge (for example)
every time you call GetResource, or can you expect things
loaded into the heap (like with GetResource) to at least be
there until the next ROM call?

Would a call like this be prone to this error:

    DrawPicture(GetPicture(1000), &r);

:------------------------------------------------------------:
: Tom Carstensen              Usenet: tomc@mntgfx.MENTOR.COM :
: Mentor Graphics             GEnie:                         :
:                                                            :
:     . . . and this shall be Max Headroom's finest hour.    :
:                                       - Max Headroom       :
:------------------------------------------------------------: