From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: DPMI and DOS Date: Mon, 09 Feb 1998 19:02:37 -0500 Organization: Two pounds of chaos and a pinch of salt. Lines: 43 Message-ID: <34DF991D.1C0F@cs.com> References: <34DF957D DOT 75CE AT hotmail DOT com> NNTP-Posting-Host: ppp212.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Walter Cohen wrote: > > I tried to run a DOS executable under WIN95's DOS VDM and I got a 'not > enough memory' error. > I then tried to just boot up with DOS and a memory manager (EMM386) but > when I ran it again it said that DPMI was not loaded (or something to > that effect). > > What can I do to either load DPMI (in DOS) or get enough memory to run > it under Win95's DOS VDM (I have 612k now)? > > Are there other DOS-like environments that I can spoof under instead of > MS/IBM DOS? Like DOS4GW. Okay, we are back to the Windows 95 memory management question again. This is so often asked that it should probably get its own answer in the FAQ. Oh wait, it does! Chapter 15: Memory issues, has a subchapter 6: Memory allocation peculiarities under Windows 95. Try reading that and you'll understand. The FAQ is available as v2/faq210b.zip from SimTel or online at http://www.delorie.com/djgpp/v2faq/. In short, the Windows 95 DPMI host does not automatically provide sufficient DPMI memory for many DOS programs. (Blame Bill Gates, not DJGPP.) To get more, open the MS-DOS prompt properties sheet and change the DPMI memory setting manually to 65535. To get DPMI under DOS, use the free cwsdpmi DPMI host that is distributed on SimTel along with DJGPP. The latest version can be found under v2misc/csdpmi4b.zip. Install it in your DJGPP tree and your programs will run in plain DOS. P.S.: Unless you are using an obsolete version of DJGPP, the "No DPMI" message also tells you what file you need, doesn't it? hth -- --------------------------------------------------------------------- | John M. Aldrich | "Always listen to experts. They'll | | aka Fighteer I | tell you what can't be done, and why.| | mailto:fighteer AT cs DOT com | Then do it." | | http://www.cs.com/fighteer/| - Lazarus Long | ---------------------------------------------------------------------