www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/09/03:46:58

From: qball1723 AT aol DOT com (QBall1723)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: What does/doesn't need memory allocated?
Date: 9 Jan 1998 08:40:28 GMT
Lines: 23
Message-ID: <19980109084001.DAA02466@ladder02.news.aol.com>
NNTP-Posting-Host: ladder02.news.aol.com
Organization: AOL http://www.aol.com
References: <34ABAA8D DOT 16C51115 AT LSTM DOT Ruhr-UNI-Bochum DOT De>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>Nate Eldredge wrote:
>> 
>> At 05:59  12/31/1997 +1030, Richard Sim wrote:
>[...]
>> >Also, if say you allocate a structure, do you have to do a free at the end
>> >of your program, or will it be totally free'd anyway? I know that you
>> >should, but must you?
>> No. All memory is automatically freed when your program exits. This should
>> be the case on every system.
>
>Although there are those who say that it is good practice because
>you are forced to keep track of what you allocate and maybe take
>more care about memory leaks _inside_ your program. Then again,
>there are always those who are overdoing things...
>
>

I wouldn't try writting to a double_buffer I hadn't allocated first ; )


Jim the loiterer (wannabe PC game/graphics developer)
http://members.aol.com/qball1723/index.htm
[please don't hate me because I pay too much for poor internet service!!]

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019