Date: Sun, 24 Oct 1999 09:36:27 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Johnny Chan cc: djgpp AT delorie DOT com Subject: Re: Q: How to make DJGPP-compiled program to be executed in a stay-alone circumstance? In-Reply-To: <000601bf1bee$8d182740$ae3d7a86@phoenix.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 21 Oct 1999, Johnny Chan wrote: > I had developed a small diagnostic program using DJGPP. This program is > designed to run from a bootable floppy diskette. I had copied the program > itself and the CWSDPMI.EXE to the floppy. When the system boot from the > floppy and execute this program, I receive a warning message saying "Unable > to create CWSDPMI.SWP" (or somthing similar), and when the program try to > make a 32-bit BIOS call, incorrect data were received. After I execute my > DJGPP setup batch file which includes "set DJGPP=C:\DJGPP\DJGPP.ENV" and > "set path=c:\DJGPP\BIN",..etc, my program then begin to work properly. > > So here is two questions: > (1) how to solve the problem of the unable to open CWSDPMI.SWP, my program > does not run on virtual mem at all. See the file CWSDPMI.DOC, it explains how to disable the swap file. > (2) What really stop my program running from the floppy. Why DJGPP.ENV is so > important to my program? I'm guessing that CWSDPMI didn't work because of the swap file problem. Try again after you solve that problem, it might be that the other problems will also go away. If not, post here the details. > (3) Any way I can combine the DPMI host with my program? Use PMODE/DJ. See sections 9.5 and 4.5 of the FAQ.