home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!paladin.american.edu!darwin.sura.net!spool.mu.edu!agate!darkstar.UCSC.EDU!cats.ucsc.edu!davids
- From: davids@cats.ucsc.edu (Dave Schreiber)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Flushing Devices; C= doco (mutter!)
- Date: 7 Jan 1993 22:19:09 GMT
- Organization: University of California; Santa Cruz
- Lines: 24
- Message-ID: <1iia8tINNdeh@darkstar.UCSC.EDU>
- References: <1993Jan7.092127.13752@philips.oz.au>
- NNTP-Posting-Host: as215-ws-19.ucsc.edu
-
-
- In article <1993Jan7.092127.13752@philips.oz.au> gduncan@philips.oz.au (Gary Duncan) writes:
- >Passing thought ; why the heck aren't unused libraries/devices
- >flushed automatically anyway? Sounds like a legacy of the days
- >when hard disks were rare and dragging a device off floppy was
- >time-consuming. Those days are gone...
-
- Why should they be flushed? An unused library essentially takes up
- zero memory, since the memory it uses can be demanded from it at
- any time (and will be demanded from it before a memory allocation
- is allowed to fail). The only people for whom auto-removal of
- libraries is important are developers who are checking for memory
- leaks; there are plenty of ways of flushing libraries on those
- rare occassions when it is needed.
-
- I say this, BTW, as a non-professional developer with lots of hard
- drive space and RAM, and who was checking a program for memory leaks
- two days ago :-).
-
- >Gary Duncan gduncan@rosella.pts.philips.oz.au
-
-
- --
- Dave Schreiber "Look. Don't touch." davids@cats.ucsc.edu (until 6/20/93)
-