Long PATH Environment Variable Causes 16-bit Apps to Hang

Last reviewed: March 11, 1998
Article ID: Q169171
The information in this article applies to:
  • Microsoft Windows NT Workstation version 4.0
  • Microsoft Windows NT Server version 4.0

SYMPTOMS

Certain 16-bit applications may stop responding (hang) or fail to run. When you look at Processes in Task Manager, it shows NTVDM at or around 100 percent CPU time.

CAUSE

This problem occurs when the PATH statement is approximately 200 character or more in length.

RESOLUTION

Use one of the following methods to resolve this problem:

Method 1

The PATH statement can be found in two locations. Shortening one or both statements should fix the problem.

PATH in System Properties:

  1. In Control Panel, double-click the System icon. Click the Environment tab.

  2. Under System Variables, select PATH and shorten the value.

  3. Click Set, and then click OK.

PATH in Autoexec.nt:

  1. Use Notepad to open Autoexec.nt, which is located in the %SystemRoot%\System32\Autoexec.nt directory.

  2. Shorten any PATH= statement.

  3. Save Autoexec.nt.

The NTVDM must be terminated before the new PATH will be used. To terminate the NTVDM process, go to task manager and select NTVDM. Click End Process.

Method 2

Increase the environment size in Config.nt:

  1. Use Notepad to open Config.nt, which is located in the %SystemRoot%\System32 directory.

  2. Add the following statement:

          SHELL=%systemroot%\system32\command.com /e:2048
    

This will increase the environment size to allow the path statement to remain at the current length. If problems persist, increase the e: parameter.

STATUS

Microsoft has confirmed this to be a problem in Windows NT version 4.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: slow DOS hang VDM
Keywords : kbbug4.00 nt16ap NTSrvWkst
Version : WinNT:4.0
Platform : winnt
Issue type : kbbug
Solution Type : kbpending


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: March 11, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.