X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: gah AT ugcs DOT caltech DOT edu (glen herrmannsfeldt) Newsgroups: comp.lang.c,comp.os.msdos.djgpp,comp.compilers.lcc Subject: Re: hash library - interface criticisms Date: 28 Jan 2002 21:35:56 GMT Organization: California Institute of Technology, Pasadena Lines: 21 Message-ID: References: <3C4ADB8E DOT 552CAE40 AT yahoo DOT com> <3C4B0ED1 DOT 3F274F98 AT is DOT elta DOT co DOT il> <3c4f46b4$1 AT news DOT alcatel DOT com> NNTP-Posting-Host: seniti.ugcs.caltech.edu X-Newsreader: NN version 6.5.0 #1 (NOV) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com jmccarty AT sun1307 DOT ssd DOT usa DOT alcatel DOT com (Mike Mccarty Sr) writes: (snip) Someone wrote: >)Btw, a program should not need to free its heap before it exits. The OS >)will take care about it. >This is completely OS dependent. Some OS will do that, and some will >not. True. But a good protected mode OS pretty much requires this, or it will have many memory management problems. For an OS that doesn't support memory protection, this is just one more thing not to protect against. I remember in early versions of VAX/VMS you could rename directories into themselves. Without protection against this, disk blocks will disapear, which is what happened. -- glen