From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: Proble with memory allocation... Date: 7 May 1997 13:04:52 GMT Organization: Oxford University, England Lines: 17 Message-ID: <5kpulk$mc7@news.ox.ac.uk> References: <336F2F3A DOT 7611 AT iiic DOT ethz DOT ch> <336F8736 DOT 5E43 AT cs DOT com> NNTP-Posting-Host: sable.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk John M. Aldrich (fighteer AT cs DOT com) wrote: : - You can test the available physical memory on your system by : attempting to lock successively larger blocks of memory until : _go32_dpmi_lock_data() fails. This is basically what Quake does when it : loads. How do you know when they fail? There is no information on return value in the docs, so presumably there's a flag somewhere? BTW In the docs for _go32_dpmi_lock_data(), the first line of the description is inaccurate; it's copied from the _go32_dpmi_lock_code() description and says the function locks an area of code (should read `data', I think). -- George Foot Merton College, Oxford