home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18435 < prev    next >
Encoding:
Internet Message Format  |  1993-01-09  |  932 b 

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