Newsgroups: comp.os.msdos.djgpp Subject: DPMI for Dummies From: gcheak AT sbinet DOT com (Greg Cheak) Organization: MIME-Version: 1.0 Content-Type: Text/Plain; charset=US-ASCII Message-ID: <3523cca3.0@newscene> Date: 2 Apr 1998 11:36:35 +0600 Lines: 19 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I have a program called "Cover" (circa 1993) that builds large tables in memory. It uses a simple call to malloc() to allocate space for these tables. If the call fails, it returns an error code (NULL). This is usually due to lack of memory to complete the operation based on the parameters I have set. I have 32mb RAM. The program, a Unix port, compiles straight away with DJGPP. What I would like to do is use DPMI (CWSDPMI) functions to allocate as much memory as I can, so that I can set larger paramters for this program. Even running in Win95 with DPMI set to 65535, the program seems not to see it. Is there sample code explaining the usage of DPMI in a program? I suspect I would have to use a swap file as well. Oh, the program builds covers ("wheels") using a process called Simulated Annealing. It works good for smaller designs. With extra memory I could work on larger ones. - Greg