Mail Archives: djgpp/1998/08/27/22:32:41
Cephaler wrote:
>
> I've just finished a good sized chunk of code for my game, and it uses
> lots and lots of pointers. I know from past experiences that memory leaks
> make programs crash (over time?) But this one seems to be ok.. I figure
> since it's a memory 'leak' (I don't really know what a leak is, a pointer
> that's wasn't freed?)
Right.
> I'd go check mem(the dos command) to see if any of
> the values changed, but I began to wonder if windows hides some values from
> command.com.
All your memory is freed when your program exits, so a memory leak is
only really a problem if it leaks enormous amounts of memory (which can
happen if the offending code runs many times). It is good practice to
avoid them, however.
>. Is there a quick way to see if you've got a memory leak?
Several tools have been mentioned.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -