delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/13/07:18:38

Date: Mon, 13 Jul 1998 11:33:27 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: John Kismul <john DOT kismul AT bergen DOT mail DOT telia DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: CWSDPMI paging file
In-Reply-To: <35A3D1DA.4F30@bergen.mail.telia.com>
Message-ID: <Pine.SUN.3.91.980713113237.323W-100000@is>
MIME-Version: 1.0

On Wed, 8 Jul 1998, John Kismul wrote:

> Is it possible in some way to get CWSDPMI to create the paging file in
> the same directory as it is installed in?

It shouldn't be hard to modify CWSDPMI to support this feature, but
you'll need to change and recompile it.  The sources are freely
available.

The problem is that CWSDPMI needs to know the drive letter of the
swapfile, so that it could query the filesystem about the free space,
and currently it relies on the fact that the file name begins with a
drive letter.  Don't forget that CWSDPMI's code is heavily optimized
for size, so it takes a lot of shortcuts to cut down its footprint.
 
> As it really pisses me off that you have to give CWSDPMI the full path 
> of the paging file, what if the user installs my program on drive D
> cause he haven't got enough free space on drive C and the paging file is
> set to C:

You seem to assume that the drive where CWSDPMI is installed is the
best candidate for holding the swap file.  I'm not sure it's correct.
For example, CWSDPMI could be on a networked drive, or even on a
CD-ROM.

I really ain't sure this problem is such a grave one.  You can always
add a simple batch file or program that runs CWSPARAM to set the
swapfile to the same drive where CWSDPMI is installed by the user.

> Anyone know how, or are there any FREE replacements for CWSDPMI which
> provides virtual memory?

AFAIK, none.  The only alternative free DPMI host is PMODE/DJ, which 
doesn't support VM.

- Raw text -


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