Mail Archives: djgpp/1999/10/24/09:58:24
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 -