Date: Wed, 11 Dec 1996 17:32:19 +0200 (IST) From: Eli Zaretskii To: "A.Appleyard" cc: DJGPP AT delorie DOT com Subject: Re: v2 dpmi double-trouble In-Reply-To: <5F41B004AA@fs2.mt.umist.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 10 Dec 1996, A.Appleyard wrote: > So I tried PMODE/DJ, prefixing PMODSTUB.EXE to A.OUT to make an independent > .EXE . This ran OK under DOS, but under Windows it jammed tight on entry. I > suspect that, as Windows is a DPMI, and PMODSTUB.EXE is a DPMI, (calling my > program by clicking it in File-Manager in Windows) tried to install a DPMI on > top of another DPMI, and thus caused a ghastly jam-up. Does PMODSTUB.EXE check > if there is a DPMI there already before it tries to install its own? Yes, it does check if there is already DPMI available, so this should work both on DOS and Windows. It works on my machine: I can run a program bound with PMODE/DJ either on DOS, on Windows from COMMAND prompt in a DOS box, by clicking on it inside File Manager, or from the Windows File|Run menu. So this must be something specific to either the program you are trying to run this way, or (less probable) to your system setup. Did you try PMODE with a trivial Hello world program, and if so, did it also lock up? Personally, I think PMODE falls short of providing a general-purpose solution to DJGPP, because it doesn't support virtual memory, so you can't use it in a program that needs significant amounts of memory and should run on any machine out there. I also fail to see why the ``nuisance'' of distributing CWSDPMI with the program is so disturbing. If Quake can bring CWSDPMI with it, and most other games come with an extender such as DOS4GW.EXE, why can't you do the same?