Date: Thu, 3 May 2001 13:23:58 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Rafal Maj cc: djgpp AT delorie DOT com Subject: Re: Memory leaks ? In-Reply-To: <9crage$5td$2@info.cyf-kr.edu.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 3 May 2001, Rafal Maj wrote: > Is ther any easy method (functions in DJGPP C++, I don't want to use > debugger) to check if all memory that were allocated, was correctly freed ? > > Something like : > int main() { > save_memory_status() // ? > char *s=new char[1000]; > //... > bool ok = test_memory_status(); // ? > if (!ok) { cerr<<"Memory leaked !"< return 0; > } > > Maybe ther is some library for doing this ? Check out YAMD, Fortify and MSS mentioned in section 22.4 of the DJGPP FAQ list.