How to fix Microsoft Visual C++ runtime library error r6025 in Windows

Matthew Adams
by Matthew Adams
Loading Comments
Affiliate Disclosure

visual studio

The Microsoft Visual C++ runtime library error r6025 occurs on Windows platforms when running software that relies on Visual C++ libraries.

When software calls a pure virtual function with an invalid call context, you can get an error message stating, “Runtime Error! Program: C:Program FilesR6025 – pure virtual function call.” This is a runtime error that crashes software, and these are a few resolutions that might fix it.

How to solve Microsoft Visual error r6025

  1. Scan System Files
  2. Repair Microsoft NET Framework 3.5
  3. Install Visual C++ Redistributable Packages
  4. Clean Boot Windows
  5. Erase Junk Files and Reinstall the Software

1. Scan System Files

Runtime errors can often be due to corrupted system files. As such, running a System File Checker could repair pertinent system files and fix this issue. You can run an SFC scan as follows.

  1. Press the Win + X hokey, and select Command Prompt (Admin) on the Win + X menu.
  2. Input ‘Dismissive /Online /Cleanup-image /Restore health’ and press Enter before running the SFC scan.
  3. Then enter ‘sfc /scannow’ and press Return to run the SFC scan.installation error 0xc000021a sfc/scannow
  4. The SFC scan can take between 20-30 minutes. If the Command Prompt states that WRP repaired some files, restart the Windows OS.

2. Repair Microsoft NET Framework 3.5

  1. It might be the case that you need to repair the Microsoft NET Framework installation. To do that, press the Win key + R keyboard shortcut, enter ‘appwiz.cpl’ in Run and press the OK button.
  2. Click Turn Windows features on or off on the Programs and Features tab to open the window directly below. net framework 3.5
  3. Now uncheck the NET Framework 3.5 checkbox, and press the OK button.
  4. Restart the Windows OS.
  5. Open the Windows Features window again.
  6. Select the NET Framework 3.5 checkbox, and click the OK button.
  7. Then restart your desktop or laptop.

3. Install Visual C++ Redistributable Packages

It might be the case that your laptop or desktop is missing a Visual C++ redistributable package and its run time components required by the software. Those are usually automatically installed on Windows.

The Programs and Features tab lists your installed Visual C++ packages as shown in the snapshot directly below.

control panel programs and features uninstall a program

If your desktop or laptop lacks some C++ redistributable packages, you can manually install 32 and 64-bit versions. Make sure you add the 32-bit packages to a 32-bit Windows platform. You can download the more recent Visual C++ redistributable packages from these website pages:

4. Clean Boot Windows

Error r6025 could be due to antivirus and system maintenance software conflicts. To ensure that isn’t the case, you can disable all non-Microsoft services. That selective startup is a clean boot, which can resolve software conflicts.

  1. First, open MSConfig by entering ‘msconfig’ in Run. That will open the window shown directly below when you press the OK button.msconfig
  2. Select the Selective startup option on the General tab if that isn’t already selected.
  3. Select the Services tab shown directly below.msconfig
  4. Select the Hide all Microsoft services option.
  5. Press the Disable all button to stop all the services.
  6. Press the Apply and OK buttons.
  7. Then select the Restart option on the System Configuration dialog box.

restart after msconfig changes

5. Erase Junk Files and Reinstall the Software

Erasing junk files and reinstalling the program that’s returning the r6025 error is another potential resolution for the issue. Erase the junk files before installing the program again. This is how you can erase junk files and reinstall software in Windows.

  1. First, open the Programs and Features tab by entering ‘appwiz.cp’ in Run.
  2. Select the software to remove, and press its Uninstall button. Then press the Yes button to confirm.disk cleanup
  3. Next, enter ‘cleanmgr’ in Run; and press the OK button.
  4. Select to scan the drive where you installed the program, which would usually be the C drive.
  5. Select all the file checkboxes on the Disk Clean-up window directly below.disk cleanup
  6. Press the OK button and click Delete Files to erase the selected file categories.
  7. Restart Windows after erasing the junk files.
  8. Then reinstall the software that you uninstalled.
  9. In addition, check if there are updates available for the preinstalled software.

Those are a few potential fixes for error r6025 that don’t require any extra third-party utility software.

Aside from the resolutions above, there is numerous third-party system optimization software that could feasibly fix error r6025 with their registry cleaners and system file repair tools. Check out this software guide for further PC repair kit details.

Editor’s Note: This post was originally published in November 2017 and has been since completely revamped and updated for freshness, accuracy, and comprehensiveness.