From: "Richard Sim" 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 Precedence: bulk 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 * *******************************************