How To Resolve Msvcrt.dll Errors

The msvcrt.dll module stores standard C library functions that are required to run programs written using the Visual C++ programming language

Msvcrt.dll Error in Windows XP

When you boot your XP computer, you may encounter either one of the following error messages:

  • ?Services.exe: Entry Point Not Found

    The procedure entry point _resetstkoflw could not be located in the dynamic link library Msvcrt.dll.?

  • ?Lsass.exe: Entry Point Not Found

    The procedure entry point _resetstkoflw could not be located in the dynamic link library Msvcrt.dll.?

What causes these msvcrt.dll errors?

The above msvcrt.dll errors are reported when a third-party file that does not contain the _resetstkoflw function replaces the original msvcrt.dll file on your XP computer.

How to fix these errors

You can fix the above listed msvcrt.dll errors by replacing the msvcrt.dll file with the original msvcrt.dll file (present in the Windows XP installation disc) using Windows XP Recovery Console.

To do this, perform the steps illustrated below:

  1. Insert your original Windows XP installation disc in the CD drive and restart your XP computer from the CD-ROM.
  2. When the Welcome to Setup screen appears, press R.
  3. If more than one operating system is installed on your computer, press the number key that points to the operating system you wish to repair.
  4. Next, type the administrator password if you have set one and press Enter.
  5. Now, type the following commands and press Enter after each command to execute it.

    > cd C:\Windows\system32
    Changes current folder to the sytem32 folder on the hard disk.

    > ren msvcrt.dll msvcrt.bak
    Renames the existing msvcr.dll file to msvcrt.bak.

    > e:
    Changes to CD drive.

    > cd \i386
    Changes directory to i386 on the CD.

    > expand msvcrt.dl_ C:
    Extracts, expands and copies the original msvcrt.dl_ to the system32 folder

    > exit
    Closes the Command Prompt window.

    Note: In the steps illustrated above, the following are assumed

    • E: is your CD-ROM drive
    • C: is the drive on which you have installed Windows

    If both or any of these details on your computer are different, replace them with the correct information. For instance, if F: is your CD-ROM drive, replace the letter E with F.

Msvcrt.dll Error in Windows NT

When you try to start MATLAB on your Windows NT computer, you may encounter the following error:

?The procedure entry point __lc_collate_cp could not be located in the 
dynamic link library MSVCRT.dll.?

What causes this error on Windows NT?

Generally, the above error is caused when the msvcrt.dll file on your computer is of an older version.

How to resolve the error?

You can resolve the above issue using either of the following methods:

Method 1 – Replace the msvcrt.dll file present in your System folder with correct version of msvcrt.dll file.

To do this, copy the msvcrt.dll file from the $MATLAB\bin\win32 directory and save the file in your System folder (By default, system folder in Windows NT is C:\Winnt\System 32).

Method 2 Install the Microsoft Library Update.

For more information on this, visit this Microsoft Library update Webpage.

Msvcrt.dll Error in Windows 95, Windows98, or Windows NT Workstation 4.0 Developer Edition

When you try to run a Microsoft Visual Basic Program, you encounter an error message similar to the one listed below:

<Program> caused an invalid page fault in module MSVCRT.DLL at <Memory Address>

What causes this error?

The above error occurs when the version of msvcrt.dll file installed on your computer is 6.00.8168.0. This version of msvcrt.dll is included in with Visual Studio 6.0 and programs that are written using Visual Studio 6.0.

How to fix the issue

To fix the above msvcrt.dll error, download and install the Microsoft Libraries update. For more information on this, visit this Microsoft library update webpage.