Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool2.mu.edu!uunet!cbmvax!bj From: bj@cbmvax.commodore.com (Brian Jackson) Newsgroups: comp.sys.amiga.tech Subject: Re: Opening a diskfont?? Message-ID: <17217@cbmvax.commodore.com> Date: 8 Jan 91 07:30:33 GMT References: <17137@cbmvax.commodore.com> <37718@cup.portal.com> Reply-To: bj@cbmvax.commodore.com (Brian Jackson) Organization: Commodore, West Chester, PA Lines: 28 In article <37718@cup.portal.com> Lee_Robert_Willis@cup.portal.com asks: >Under 1.3, is a disk font *actually* purged from memory when all >accessors have closed it? I have a program which opens disk fonts, >and faithfully closes them again on exiting. Yet if I run it again, >it doesn't go to disk, but finds them all in RAM. Nope. Under both 1.3 and 2.0 the fonts (and libraries) in memory are not flushed unless the system needs the memory and the accessor count is zero. Under 2.0 you can do an "avail flush" from the CLI to force this. Under earlier OS versions, a simple little program that attempts to allocate more memory than is in the system will do the job: AllocMem( 300000000000L, MEMF_PUBLIC ) ; That should do it on most systems :) But remember, this will flush ALL libraries and fonts from memory (those with accessor counts of zero) not just selected ones. bj >Lee ----------------------------------------------------------------------- | Brian Jackson Software Engineer, Commodore-Amiga Inc. GEnie: B.J. | | bj@cbmvax.cbm.commodore.com or ...{uunet|rutgers}!cbmvax!bj | | "Please Captain, not in front of the Klingons." | -----------------------------------------------------------------------