A passionate programmer’s findings in the world of internet.

Troubleshooting Window XP c000021a Error (Blue Screen)

July 6th, 2008

I found some problems with the built-in bluetooth device in my HP laptop. So, I reinstalled the driver. I reboot the machine after installation completed. When the computer boot up, it failed to enter Windows. It only managed to reach the Windows XP boot up screen, then it restart again itself.

After a few rounds of self reboot, I think I could put it into safe mode then use system restore to restore the system back to the time before I install the new driver.

To put a Windows XP machine into safe mode, all you have to do is to keep pressing F8 button when the computer boots up. Then you will be displayed with an "Windows Advanced Options Menu", which you need to select "Safe Mode".

Unfortunately, safe mode didn't work for me. It has the same fate as before. It reboots before it can enter Windows. The next option I tried was Last Known Good Configuration, but still no luck.

Then, I tried Disable automatic restart on system failure in the "Windows Advanced Options Menu", initiated with the same F8 way.

The Windows XP loading screen showed up. Then, I get a blue screen with the following error:

STOP: c000021a {Fatal System Error}
The Windows Logon Process system process terminated unexpectedly with a status of 0xc0000139 (0x00000000 0x00000000).
The system has been shut down.

Now, I got the error code. I start another computer to search for a solution and I found a Microsoft Knowledge Base article titled How to troubleshoot a "STOP 0xC000021A" error. I thought I found the solution, but it asked me to use a command prompt to enable Dr. Watson. Is the guide silly or I'm the one stupid? How do I do it when I can't start anything, even safe mode in command prompt failed.

Another search result points me to this thread: Blue screen after installation on Win XP. The user mentioned:

Turned out that the problem was caused by the installer overwriting msvcrt.dll in System32, causing the crash.

So, my next attempt will try to replace the file using Recovery Console. Copy the file from another computer and put it into a USB drive. Plug it into the failed computer.

Then, start Recovery Console to copy the file.

  1. Put the Windows XP setup CD into the failed machine.
  2. Start/Reboot the computer.
  3. Press any key to boot from CD.
  4. You will get yourself into Windows Setup.
  5. When the "Welcome to Setup" screen appears, press R to start the Recovery Console.
  6. Press number to select the correct Windows XP installation, then enter the administrator password.

Now, I'm in the recovery console. These are what I did:

  1. Check the date and size of the msvcrt.dll. For my case, it is different from what I can find in another computer. The correct size is at around 335KB.
  2. Backup the original DLL in C:\windows\system32.
  3. Copy the file in USB drive to c:\windows\system32\msvcrt.DLL (Note: you may need to try a few drive letters to find your USB drive.)
  4. Enter "exit" to reboot the computer.
  5. Remove the Windows XP CD and USB drive.

And... my HP laptop is working!

If my article helped you solved your problem, consider buy me a beer!

Share this article: del.icio.us | digg it

Tags: ,

Related posts:

14 Responses

Marko says:

Thanks a looooooot!

You helped me so much with this. It took me all day of trying all sort of things before I tried what you recomended. It worked like a charm at once. My guess is that bluetooth software uses some older version of C library functions, and since I had to reinstall bt. software, it deleted the working version and replaced it with one that can’t work with credential manager used to log me in by my fingerprint scan.

It looks so simple now…

Thanks again!

Santiago says:

Mil gracias.

Tu sugerencia funcionó. Tenía el mismo problema y se resolvió “reemplazando” el archivo msvcrt.dll


Pauly says:


nun habe ich tage lang im I-Net gesucht wo denn der Fehler liegen könnte, das mein PC nicht mehr hoch fährt. Leider habe ich auch einen Bluetooth Stick installieren wollen bzw. habe es gemacht. Danach wollte der PC einen Neustart. Nach diesem Neustart konnte er nicht mehr hoch fahren. Immer wieder dieser Bluescreen mit der Fehlermeldung. Wie gesagt ENDLICH nach diesem Beitrag habe ich einfach die DLL ausgetauscht und nun läuft der PC wieder 🙂 Vielen vielen Dank für diesen Beitrag ohne in hätte ich meine ganze Festplatte löschen müssen und alle Daten bzw. Programme wären verloren gewesen.

Thanks a lot Eng Lee

rodrigo samico says:

Thanks a Lot Eng Lee!!! Worked for me here in Brazil today! I was already desperate with this!!!

javier says:

thanks a lot, guy!!! you saved ny day

greetings from spain

Seb says:

Thanks, a lifesaver after a botched bluetooth daughter card install on my thinkpad t43!

Patrick says:

This saved me lots of frustration. Thank you!

John says:

I have this same problem So i followed these steps. # Put the Windows XP setup CD into the failed machine.
# Start/Reboot the computer.
# Press any key to boot from CD.
# You will get yourself into Windows Setup.
# When the “Welcome to Setup” screen appears, press R to start the Recovery Console. After I do this it doesnt give me step 6. it just brings me to C:\> prompt. So I cant check the file msvcrt.dll. What am I doing wrong

haiduc says:

hi man u are the best!!!
thku a lot

martos says:

Thank’s my friend:)

Ken says:

This actually worked ^_^
I’ve never been so happy to see my pc boot up!

Thanks a trillion!

Dennis says:

It Worked! Thanks!

Marcel says:


Great.. !!! Youre lifesaver!

Ludmila says:

Thank you sooooooooooooooooooooooo much!
Really the best solution.
I fount this only because I wrote in google with “bluetooth” after the error number.
PS : it is easier to use a soft like ERD Commander to get into the machine and copy the file, which is also in another backup directory in Windows (if console doesn’t work)