Xref: news2.mv.net comp.os.msdos.djgpp:4559 From: myskin AT inp DOT nsk DOT su (Vyacheslav O. Myskin) Newsgroups: comp.os.msdos.djgpp Subject: Re: How much free memory? Date: Tue, 04 Jun 1996 03:37:56 GMT Organization: BINP RAS Lines: 25 Distribution: world Message-ID: <4p0b2m$p1i@sky.inp.nsk.su> References: Reply-To: myskin AT inp DOT nsk DOT su NNTP-Posting-Host: csd-bsdi.inp.nsk.su To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Eli Zaretskii wrote: > > On Thu, 30 May 1996, Vyacheslav O. Myskin wrote: > > > I'd like to know the answer too. I've browsed the list of > > memory-related functions and found nothing to get the amount of memory > > available. > > What's wrong with `__dpmi_get_free_memory_information' and > `__dpmi_get_memory_information'? I asked this question because malloc failed to allocate the block reported by __dpmi_get_free_memory_information. > You should also know that DJGPP `malloc' rounds the size to a nearest > power of 2, which might explain some failures. But most DPMI servers It really explains the values 2Mb and 16Mb that I got. Thanks. Best wishes, V. Myskin