Date: Mon, 13 Jul 1998 11:33:27 +0300 (IDT) From: Eli Zaretskii To: John Kismul cc: djgpp AT delorie DOT com Subject: Re: CWSDPMI paging file In-Reply-To: <35A3D1DA.4F30@bergen.mail.telia.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.