delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/24/09:58:24

Date: Sun, 24 Oct 1999 09:36:27 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Johnny Chan <jchan AT paclink DOT net>
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: <Pine.SUN.3.91.991024093556.29385P-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019