home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18201 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.1 KB  |  31 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!munnari.oz.au!penguin!gduncan
  3. From: gduncan@philips.oz.au (Gary Duncan)
  4. Message-ID: <1993Jan6.104949.20894@philips.oz.au>
  5. Date: Wed, 6 Jan 93 10:49:49 GMT
  6. Organization: Philips Public Telecommunications Systems, Melbourne, Australia
  7. Subject: Flushing unused devices out of ram , how ?
  8. Lines: 21
  9.  
  10. Is there a system call to do this ? I've grovelled through
  11. the Devices RKM (Ed 3, latest, and elsewhere) and can't find
  12. one.
  13.  
  14. I've seen mention of this a while ago but have forgotten where.
  15.  
  16. Currently in a C-program I've done a :-
  17. Execute  ("Avail Flush >nil:", 0,0);
  18.  
  19.     which does the job but its a bit klugey.
  20.  
  21. Why do I want to do this? Simply that if you open a device (for
  22. the first time ) then close it, it hangs around unused in RAM
  23. giving the impression of a memory leak.
  24.  
  25. - Gary
  26. -- 
  27. -----------------------------------------------------------------
  28. Gary Duncan            gduncan@rosella.pts.philips.oz.au    
  29. Philips Public Telecommunications Systems    Phone: +61 3 8813666
  30. Melbourne, Australia                     Fax: +61 3 8813577
  31.