home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!uniwa!DIALix!acix!johnv
- From: johnv@acix.DIALix.oz.au (John Verhoeven)
- Subject: Re: Flushing unused devices out of ram , how ?
- Newsgroups: comp.sys.amiga.programmer
- References: <1993Jan6.104949.20894@philips.oz.au>
- X-Newsreader: TIN [version 1.1 PL8]
- Message-ID: <johnv.0432@acix.DIALix.oz.au>
- Date: 7 Jan 93 14:48:56 WST
- Organization: ACix - Private UUCP Node, Cloverdale, Western Australia.
- Lines: 14
-
- Gary Duncan (gduncan@philips.oz.au) wrote:
- > Is there a system call to do this ? I've grovelled through
- > the Devices RKM (Ed 3, latest, and elsewhere) and can't find
- > one.
-
- Try allocating a large chunk of memory (eg. AllocMem(AvailMem(MEMF_TOTAL),0L).
- Exec will run around throwing things out of memory before returning failure
- for the AllocMem call.
-
- > Currently in a C-program I've done a :-
- > Execute ("Avail Flush >nil:", 0,0);
- > which does the job but its a bit klugey.
-
- True, True :-)
-