FIX: Phar Lap err 58 Running MASM From Read-Only Drive

Last reviewed: September 16, 1997
Article ID: Q99575
6.10 MS-DOS kbtool kbfixlist kbbuglist

The information in this article applies to:

  • Microsoft Macro Assembler for MS-DOS, version 6.1

SYMPTOMS

An attempt to run the Microsoft Macro Assembler (MASM) version 6.1 fails and MASM generates the following message:

   Phar Lap err 58: Can't create VM swap file of size 0 in directory

This error does not occur when MASM runs in an MS-DOS window in Microsoft Windows.

CAUSE

MASM is installed on a read-only drive, possibly a network drive. The error occurs because the DOSXNT DOS extender attempts to create a virtual memory swap file on the drive DOSXNT runs from when the operating system does not support virtual memory.

RESOLUTION

To work around this problem, you can run DOSXNT on a read/write drive listed in your PATH MS-DOS environment variable. In addition, you can specify one of the following two environment variable settings to prevent DOSXNT from attempting to create a swap file on the read-only network drive:

  • Set the DOSX environment variable to prevent DOSXNT from using any virtual memory. Edit your AUTOEXEC.BAT file to include the following:

          set dosx=-novm
    
  • Set the DOSX environment variable to specify where DOSXNT creates the virtual memory swap file. Edit your AUTOEXEC.BAT file to include the following:

          set dosx=-swapdir <path>
    

    where <path> specifies the drive and directory on which to create the temporary swap file.

STATUS

Microsoft has confirmed this to be a problem in MASM version 6.1. This problem was corrected in MASM version 6.1a.


Additional reference words: 6.10 PharLap buglist6.10 fixlist6.10a
KBCategory: kbtool kbfixlist kbbuglist
KBSubCategory: MLIss
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 16, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.