From: Oz the Wizard Subject: How to know much memory left? To: djgpp AT sun DOT soe DOT clarkson DOT edu (Mailing List for DJGPP) Date: Fri, 14 Apr 1995 20:22:10 -0700 (PDT) Hi After reading the mails about porting Borland to DJGPP, I am reminded another function "coreleft()." How do I know how much memory are free? I use a lot of "new" operations in my program, and I want to know whether I return all of memory that I allocate. I think I may check the subroutine by comparing the amount of memory before running and those after running. Another question: If I do not return all of dynamically allocated memory before I quit the program, is there any harm to the system? Thanks in advance. Andy