Pre-allocates a swap file size, under non-DPMI environments, at start-up. nnn is file size in megabytes, not kilobytes (same as MAXMEM).
There are at least two uses for this feature. First, to pre-allocate a virtual memory file size for applications with a total memory allocation (including EXE image) that does not exceed the set size. For example:
pre-allocates a virtual memory file of 4M. If an enduser resets or powers off the computer while the application is running and virtual memory is in use, the enduser's machine will not have lost clusters. There is only a 4M temporary file to find and erase. If virtual memory usage exceeds 4M, then SCANDISK must be used to recover lost clusters above and beyond what was pre-allocated.
Secondly, PRE can be used to allow your application to stake a claim to disk space before it needs it.
PRE may be used in conjunction with MAXMEM to ensure that virtual memory does not exceed the pre-allocation setting.SWAP:path
Set CauseWay's virtual memory manager swap file path. This path takes precedence for choosing the location of a swap file over the TEMP and TMP environment variables.
Go to Table of Contents