CCleaner keeps crashing on Windows 10/11 [Startup, Safe Mode]

Radu Tyrsina
by Radu Tyrsina
CEO & Founder
Radu Tyrsina has been a Windows fan ever since he got his first PC, a Pentium III (a monster at that time). For most of the kids of his age, the Internet was an... Read more
Affiliate Disclosure
  • CCleaner is a very useful tool that scans and deletes unnecessary files to free up space on your computer.
  • Several factors can cause this tool to crash, including a corrupt download or improper installation of the software.
  • For more guides and fixes, head to our Tech Troubleshooting section.
  • If you're looking for more digital tools, you will find lots of awesome articles in our Software Hub.
How to fix CCleaner if it keeps crashing on Windows 10
To fix various PC problems, we recommend Restoro PC Repair Tool:
This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:

  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer's security and performance
  • Restoro has been downloaded by 0 readers this month.

If you have been a Windows user for a long time now, then CCleaner is no stranger to you. For starters, CCleaner works to scan and delete unnecessary files to free up space in your computer storage.

These temporary files emerge from programs, report logs, and Internet Explorer files as you open them.

However, the disk cleanup software is unable to remove cache files from other browsers, including Chrome and Firefox.

The tool also clears your browsing history and your most recently opened files. This is especially helpful for users who want to maintain a certain level of privacy.

As a third-party software, CCleaner also helps to resolve computer issues arising from old or corrupted files.

While the software is designed to help fix computer problems, it can sometimes run into an error itself. Users are reporting a crash problem in CCleaner while the tool is running.

Several factors can cause CCleaner to crash (C000021A error), including a corrupt download or improper installation of the software.

The problem also arises after you have modified or updated CCleaner, which can corrupt the Windows registry if the change is incomplete.

Malware infection is another major contributor to CCleaner crash as it corrupts Windows system files or CCleaner files.

However, even non-malware programs can cause CCleaner to crash as well, when files related to the disk cleanup tool are inadvertently deleted upon running those programs. Below is a list of solutions to help you fix CCleaner crashes.

How can I fix CCleaner in Windows 10?

1. Scan your computer for malware

antivirus lifetimeThe C000021A error sometimes arises due to the presence of malware on your computer. Malicious software could corrupt and remove runtime-related files.

Many anti-malware programs could help resolve this issue but if you want the best, we recommend Bitdefender.

This antivirus software is ranked as no. 1 in the world for malware protection, but it also great for not interfering with other system settings or programs.

Expert Tip: Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken. We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.

After cleaning your computer and solving the problem with CCleaner, you will still have a solution that will also protect you from multi-layered ransomware, online phishing and fraudulent attempts. 

It’s really simple to use. Open the tool, run a system scan, and wait for the process to complete. Of course, you will need to allow it to delete any found threats and to repair and optimize the system.

Bitdefender Antivirus

Bitdefender Antivirus

Bitdefender is no.1 in malware protection so it’s ideal to solve your CCleaner problem.

Get it now

2. Update device drivers to fix the C000021A error

There’s a good chance that outdated PC device drivers are causing the C000021A error. This is not entirely a cause for so much worry, however. Driver updates are always available to download from software manufacturers.

The challenge, though, is the arduous task of finding the exact driver for C000021A-related device. Worse, installing the wrong driver update can even lead to further issues.

You can also deal with this problem a lot easier by using specialized software to update drivers automatically. There are a few such third-party software but we recommend DriverFix.

Here’s what you need to do:

  1. Download DriverFix
  2. Start the program and wait for it to scan your PC
  3. Select the drivers from the list and wait for their installation
  4. Restart your PC


DriverFix will take care of your updates automatically so you will always have your system fresh and out of trouble.

Free trial
Visit website

3. Perform a manual repair of Windows registry

  1. Backup the registry files related to C000021A error.
  2. Type command in Windows search.
  3. Hold CTRL-Shift on the keyboard before hitting Enter. Select Yes once a permission dialog box appears.
  4. Type regedit  and press Enter.
  5. Then choose CCleaner in the Registry Editor to backup the program before clicking Export in the File menu.
  6. Select a folder in the Save In list where you want to save the CCleaner backup key.
  7. Click Selected branch in the Export Range box before hitting Save. The backup is now saved as a .reg file.

Note: The manual process of editing the Windows registry, is recommended only for advanced computer users. Even the slightest mistake in the use of Registry Editor can cause irreversible problems to your operating system.

4. Remove temporary files and folders

  1. Type command in Windows search.
  2. Hold CTRL-Shift before hitting Enter and a permission dialog box will crop up. Select Yes.
  3. Type cleanmgr and press Enter.
  4. The Windows Disk Cleanup tool will now calculate how much space you can free up and allow you to choose which category you want to clean out.

5. Perform a Windows System Restore

  1. Type restore in Windows search and click on Create a restore point from the results.
  2. Click on System Restore, then on the Next button.
  3. Select a restore point from the list.

Note: If you didn’t create any restore points before, you won’t be able to perform a System Restore.

6. Download and install Windows updates

Microsoft constantly rolls out updates to improve Windows. But most users frequently ignore these updates, inadvertently or otherwise.

These updates, in fact, usually help to fix C000021A errors with the newest Service Pack and the latest patches. To see the latest Windows updates, simply open the Windows Update dialog box and click Install Updates.

7. Reinstall CCleaner

If all else fails, you can simply uninstall the CCleaner program and reinstall the tool from Piriform. This process does not take much effort. Go to Programs and Features in the Control Panel and find CCleaner.

Uninstall the program by following on-screen directions. Once this is done, visit Piriform’s website and download the latest version of CCleaner.

idee restoro Still having issues? Fix them with this tool:
  1. Download this PC Repair Tool rated Great on (download starts on this page).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues with Patented Technologies (Exclusive Discount for our readers).

Restoro has been downloaded by 0 readers this month.

This article covers:Topics: