Microsoft KB Archive/220155

= Troubleshooting NTVDM and WOW Startup Errors =

Article ID: 220155

Article Last Modified on 11/1/2006

-

APPLIES TO


 * Microsoft Windows NT Server 4.0, Terminal Server Edition
 * Microsoft Windows NT Server 4.0 Standard Edition
 * Microsoft Windows NT Workstation 4.0 Developer Edition

-



This article was previously published under Q220155



SUMMARY
This is a step-by-step troubleshooting guide for examining Windows NT Virtual DOS Machine (NTVDM) or Windows on Windows startup issues.



MORE INFORMATION
To begin troubleshooting, determine whether you are dealing with problems in the NTVDM or problems in both the NTVDM and the Windows on Windows subsystem.

NOTE: Sysedit.exe is a 16-bit program available within Windows NT for troubleshooting these issues.

Problem Diagnosis
To diagnose your problem:  Start System Configuration Editor (Sysedit.exe).

If this program starts correctly, then there is not an issue with either the NTVDM or the Windows on Windows subsystem. The problem then is with your program not Windows NT. If the program is an older version and requires EMS memory, you must configure it. For more information, please see the following Microsoft Knowledge Base articles:

Q99279 MS-DOS-Based Application and Command Prompts

Q196875 Error When EMS Memory Is Configured for MS-DOS App in .pif File

If the program requires more convential memory than is available, please see the following Microsoft Knowledge Base article:

Q99363 Increasing Memory for MS-DOS-Based Applications

However, if System Configuration Editor does not start correctly, then you do not know where the problem lies. Because the problem could be with either Windows on Windows or NTVDM, go to step 2. If troubleshooting determines that the problem is with the Windows on Windows subsystem, then all of the steps listed below in the Troubleshooting section below apply. Run the MS-DOS shell (running the Command.com command from the MS-DOS command prompt).

If this program starts, then run the Edit.com command, then you know that NTVDM works. If the shell does not start, then all of the troubleshooting steps below apply (except steps 3 and 4). Check and delete the default NTVDM. Run the Sysedit.exe command at a command prompt.

NOTE: If for any reason your computer does not pass the previously mentioned test, then repeat the entire procedure above after you complete the next three steps.

 Start Task Manager, click the Processes tab, and then click the Image name column. Look for the Image name ntvdm, and then stop the process if you find it in the list. If you do not find it in the list, skip the next step. Repeat the procedure outlined in steps 2 and 3 above.</ol> </li></ol>

Troubleshooting
Please repeat the following steps in the order they appear to troubleshoot issues with either the NTVDM or Windows on Windows subsystems.

Please note that steps three and four apply only to the situation where the Windows on Windows subsystem does not start. <ol> Check the Autoexec.nt and Config.nt files for anything unusual or anything that can be commented out.</li> Rename Autoexec.bat.</li> Check for changes in Win.ini or System.ini, or replace by expanding the original files off of the installation media.</li> Rename all other *.ini files, if possible.</li>  In the Config.nt file, allow the following values only: <pre class="fixed_text">  dos=high, umb device=%SystemRoot%\System32\Himem.sys files=60 shell=%SystemRoot%\System32\Command.com /e:4096 NOTE: The default entries off of the installation disk will allow SYSEDIT to run, but other entries as outlined above may be needed for other programs to run. Also, files has a valid range of 5 to 254. </li> Verify the environment variables by doing either of the following:

<ul> Click Start, click Settings, click Control Panel, double-click System, and then click the Environment tab.</li></ul>

-or-

<ul> Run the set command at the command prompt and check all environmental variables for nulls, blanks, double equal sign (==) marks, or other unknown entries.</li></ul> </li> Ensure that the path is the same as the default path off of the CD; that is, that there are no entries prepended to the path. If a nonstandard entry is there, remove it. Add only the entries needed for your one program and the defaults.</li> Check path length for lengths after expansion that are near 200 characters. Path is a combination of path in Autoexec.nt and on the Environment tab in the System tool of Control Panel. If the path is over 100 characters, change it for testing.</li> If this does not work, you have missing or corrupted files. (More likely, the files will be corrupted rather than missing; try to replace these first.)

Under the System32 folder look for:

<ul> Ntio.sys</li> Ntdos.sys</li> Ntvdm.exe</li> Ntvdm.dll (3.1 only)</li> Redir.exe</li> <li>Wowexec.exe</li> <li>Vdmredir.dll</li> <li>Krnl386.exe</li> <li>Krnl286.exe (Windows NT 3.1 only)</li> <li>Gdi.exe</li> <li>User.exe</li> <li>Wow32.dll (not in Windows 3.1)</li> <li>Commdlg.dll</li> <li>Version.dll</li> <li>Shell32.dll</li> <li>Gdi32.dll</li> <li>User32.dll</li> <li>Advapi32.dll</li> <li>Compobj.dll</li> <li>Ddeml.dll</li> <li>Ole2.dll</li> <li>Ole2disp.dll</li> <li>Storage.dll</li> <li>Rpcrt4.dll</li> <li>Winsta.dll</li></ul>

Under the System folder look for:

<ul> <li>Avicap.dll</li> <li>Avifile.dll</li> <li>Commdlg.dll</li> <li>Keyboard.drv</li> <li>Lzexpand.dll</li> <li>Mciavi.drv</li> <li>Mciseq.drv</li> <li>Mciwave.drv</li> <li>Mmsystem.dll</li> <li>Mmtask.tsk</li> <li>Mouse.drv</li> <li>Msvideo.dll</li> <li>Olecli.dll</li> <li>Olesvr.dll</li> <li>Setup.inf</li> <li>Shell.dll</li> <li>Sound.drv</li> <li>System.drv</li> <li>Tapi.dll</li> <li>Timer.drv</li> <li>Ver.dll</li> <li>Vga.drv</li> <li>Wfwnet.drv</li> <li>Winspool.drv</li></ul>

If this does not to resolve your problem call PSS support for further troubleshooting steps.</li></ol>

Keywords: kbinfo KB220155

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.