delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/31/03:45:28

From: "Richard Sim" <richard AT hyper DOT net DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: What does/doesn't need memory allocated?
Date: Wed, 31 Dec 1997 17:59:42 +1030
Lines: 27
NNTP-Posting-Host: 203.38.156.63
Message-ID: <34a9f503.0@kastagir.senet.com.au>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi, I just spent several days trying to get a routine working because I
forgot to allocate 5 bytes of memory, and I was wondering if there are any
programs/documents that tell you what needs to have memory allocated to it.
i.e. Goes through your code and finds things that need memory allocated to
them, or a text that explains things like this...
Just if you didn't have to allocate memory all of the time...or if there was
something that would tell you what you have to allocate memory for and what
you don't :-).
Oh well, if anyone knows of anything like this could they please tell me
since I really need it. :-)

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?

Thanks and Happy New Year, cya
Richard Sim
richard AT hyper DOT net DOT au


*******************************************
* Richard Sim - Richard Sim - Richard Sim *
*          richard AT hyper DOT net DOT au           *
* Richard Sim - Richard Sim - Richard Sim *
*******************************************


- Raw text -


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