From: "David.M.Reed" Newsgroups: comp.os.msdos.djgpp Subject: Virtual memory?? Date: Sun, 09 Mar 1997 13:19:07 +0000 Organization: Loughborough University, UK. Message-ID: <3322B8CB.4164@earthling.net> Reply-To: dave AT earthling DOT net NNTP-Posting-Host: 158.125.113.106 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 19 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I have only had DJGPP for a couple of days, and I have noticed some very strange things happening when I try to allocate large amounts of memory. I tried to allocate a very large block of memory with malloc()/xmalloc() - about 8 Mb (on a 16Mb PC), and then fill this memory with data. If I run it through DOS with CWSDPMI, it runs fine, but when running through Win95, after about 2Mb, it starts using virtual memory. (horrible hard disk accesses..) Is there anyway I can disable virtual memory, and just exit the program if not enough physical RAM is available? Does anyone know how I can allocate more physical RAM under Win95? (I heard that 'Quake' was written in DJGPP and this manages to allocate plenty of RAM through Win95) I have tried fiddling with the Win95 memory properties for rhide.exe, and this does not seem to have helped.