delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
Message-ID: | <405B254D.9E747317@yahoo.com> |
From: | CBFalconer <cbfalconer AT yahoo DOT com> |
Organization: | Ched Research |
X-Mailer: | Mozilla 4.75 [en] (Win98; U) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: How can I monitor the amount of free RAM? |
References: | <c3f2m1$217i$1 AT alpha2 DOT radio-msu DOT net> |
Lines: | 23 |
Date: | Fri, 19 Mar 2004 17:48:43 GMT |
NNTP-Posting-Host: | 12.76.140.241 |
X-Complaints-To: | abuse AT worldnet DOT att DOT net |
X-Trace: | bgtnsc04-news.ops.worldnet.att.net 1079718523 12.76.140.241 (Fri, 19 Mar 2004 17:48:43 GMT) |
NNTP-Posting-Date: | Fri, 19 Mar 2004 17:48:43 GMT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Anthony wrote: > > Could someone give me a hint: I need to be sure that my program > doesn't leak memory. Thus I want to check the amount of free RAM > periodically. > 1. What memory should I monitor (DOS (below 1MB), upper,...) > 2. How can do that? For DJGPP only, try using my nmalloc package with the associated malldbg package. It won't show free RAM, but it will show the complete malloc use at any time. You can take a snapshot immediately after entering main, and another when you are about to exit and have hopefully freed everything allocated. If they match, you didn't leak. <http://cbfalconer.home.att.net/download/nmalloc.zip> -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net) Available for consulting/temporary embedded and systems. <http://cbfalconer.home.att.net> USE worldnet address!
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |