www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/04/14/08:06:38

From: Oz the Wizard <andy AT smart DOT csie DOT ntu DOT edu DOT tw>
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

- Raw text -


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