• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

How to replace msvcrt.dll

3310168954

New Member
I was trying to replace msvcrt.dll with a newer version and everytime I try to copy and paste the newer version into my C:\windows\system\ directory, I get: "Cannot create or replace msvcrt: The specified file is being used by Windows." So how do I replace it?
 
I have this 3d modeling program called Milkshape3D, and I am using a plugin for it that imports and exports models for Battlefield1942. I was trying to import a model and as soon as I hit the import button I get the following message:


MS3D caused an invalid page fault in
module MSVCRT.DLL at 0167:7800d203.
Registers:
EAX=03af0078 CS=0167 EIP=7800d203 EFLGS=00010246
EBX=03ade978 SS=016f ESP=03ade8b8 EBP=03ade8d4
ECX=22000000 DS=016f ESI=03c0600d FS=411f
EDX=00006011 ES=016f EDI=00000000 GS=0000
Bytes at CS:EIP:
8b 14 31 8d 1c 31 89 55 f4 8b 56 fc 89 55 f8 8b
Stack dump:
03c0602b 03c06011 03ade978 03af01bc 7803b534 78001d9a 22000000 03ade918 7800cc3f 03bf000c 03c06011 03c0602b 03adeb30 03ade978 03adea78 072d6130


I have been trying to find some info on how to fix this problem, and it seems that I need to get a newer version of msvcrt.dll. So, how do I replace it?
 
I have had this error before (can't remember which now) I just ended up ditching the program that gave this error. You could also try opening the program when not much else is running, it could be using too many resources.
 
It looks to me like 3310168954 is right (thats one hell of a name).

The msvcrt.dll file is either corrupt or old. It's used for running applications created in Visual C++. If this file is corrupt, then most if not all programs made in VC++ shouldn't run. If its old, then newer programs made in the latest versions of VC++ shouldn't run.

Replacing it with the most up-to-date version from the microsoft website should sort this.
 
Yeah, if he's using winXP then i would of thought that would have one of the latest versions anyway.

Just an idea: Have you tried Windows Update?
 
Originally posted by shockfire
Yeah, if he's using winXP then i would of thought that would have one of the latest versions anyway.
I was asking because the procedure for replacing files that are in use is different on Win9x and WinNT derived OS'es :)
 
Originally posted by 3310168954
I have already tryed booting up in safe mode.
You mean that solved your problem or that you tried but it didn't work?

If it didn't work try this:
open notepad
type:
[rename]
path-to-old-msvcrt.dll=path-to-new-msvcrt.dll
So replace the last line with: c:\windows\system\msvcrt.dll=c:\temp\msvcrt.dll for example but make sure the paths match the location of each file on your PC.
Save the file as wininit.ini in your main windows folder (c:\windows most likely) and then reboot.
Windows should copy the new file over the older file before it starts loading everything else on startup.

(Edited to add: actually if you're using Win98, you could just press F5 right after the bios screen but before windows starts up and you'll boot into DOS and you could copy the files over that way easily as well)
 
Last edited:
Ok CareBear, I tried what you said and it worked, but there is still a problem. I copied over my orginal msvcrt.dll which was version 6.10.8637.0 with version 6.10.9359.0. When I then tried using the plugin, it still didn't work. So I decided to try an older version of msvcrt.dll, so I copied over 6.10.9359.0 with 5.00.7128. I then opened up Milkshape and opened up the plugin and imported a model and it Worked! BUT, some of my other programs that I then tried using didn't work, including Jasc Paint Shop Pro 7. It would say that msvcrt60.dll is linked to a file that is missing. So I am guessing that they were linked to a newer version of msvcrt.dll. So I think I know how to fix my problem. All I need is a version of msvcrt.dll that is old enough to support the plugin, but new enough to support Paint Shop Pro. Any ideas what version I shoud download?
 
Welcome to what's commonly referred to as "DLL hell" :)

You could try replacing the msvcrt.dll in your windows directory to the orignal one you had there and place the msvcrt.dll that works with the program in the same folder as the .exe and then running it. That might solve your problem.
 
Back
Top