home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!munnari.oz.au!penguin!gduncan
- From: gduncan@philips.oz.au (Gary Duncan)
- Message-ID: <1993Jan6.104949.20894@philips.oz.au>
- Date: Wed, 6 Jan 93 10:49:49 GMT
- Organization: Philips Public Telecommunications Systems, Melbourne, Australia
- Subject: Flushing unused devices out of ram , how ?
- Lines: 21
-
- 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.
-
- I've seen mention of this a while ago but have forgotten where.
-
- Currently in a C-program I've done a :-
- Execute ("Avail Flush >nil:", 0,0);
-
- which does the job but its a bit klugey.
-
- Why do I want to do this? Simply that if you open a device (for
- the first time ) then close it, it hangs around unused in RAM
- giving the impression of a memory leak.
-
- - Gary
- --
- -----------------------------------------------------------------
- Gary Duncan gduncan@rosella.pts.philips.oz.au
- Philips Public Telecommunications Systems Phone: +61 3 8813666
- Melbourne, Australia Fax: +61 3 8813577
-