delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/31/13:00:47

From: Prashant TR <prashant_tr AT yahoo DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How can I know free memory in bytes?
Date: 31 May 2000 22:13:29 +0530
Organization: VSNL
Lines: 13
Message-ID: <m3puq2hdqm.fsf@vsnl.net.in>
References: <3934AFC1 DOT 68C3AF39 AT htsol DOT com>
NNTP-Posting-Host: 203.197.177.198
X-Trace: news.vsnl.net.in 959829343 10740 203.197.177.198 (1 Jun 2000 03:15:43 GMT)
X-Complaints-To: postmaster AT news DOT vsnl DOT net DOT in
NNTP-Posting-Date: 1 Jun 2000 03:15:43 GMT
X-Newsreader: Gnus v5.5/Emacs 20.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Yoram Hofman <yoram AT htsol DOT com> writes:

> My DOS program has to run a long time in stand alone system.
> So I am wonder to know about memory leaks. I am interested in a  more
> detailed
> information that the function __dpmi_get_free_memory() can give.
> The structure __dpmi_free_mem_info uses pages.
> Can anybody tell me the way to know about free BYTES?

A page is 4K long. So you just multiply by this value and you get what you
want. And I don't think there's any other way you could get this information
because when you are working in a DPMI environment, only the DPMI host can
give you the right information.

- Raw text -


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