• Holiday Tech Gifting Central
  • Hot Cyber Monday Deals Right Now!

Runtime Error: What It Is and How to Fix It

What to do when you see runtime errors

how to fix a runtime error

  • Emporia State University

how to fix a runtime error

  • Western Governors University
  • The Ultimate Laptop Buying Guide

A runtime error occurs while a program is running or when you first attempt to start the application. The error sometimes goes away on its own by simply reopening the app, but if not, there are a number of things you can try.

Runtime Errors

Valentin.d / Flickr

Depending on the situation, there are a few reasons why a runtime error might occur:

  • There's a bug in the software.
  • Memory or another system resource is in short supply.
  • You've entered a foreign character into a text field, or performed some kind of action that isn't allowed.

The error usually appears as a small window, often with an indication of the program that's being affected, and sometimes with an error code and message. The prompt might also include a suggestion to contact a support team or administrator.

Here are some examples:

Paying close attention to what the error says, if possible, is the best way to address it. If the error is too general to diagnose right off the bat, then follow the below steps in order. If it's particular, however, and mentions something like Microsoft Visual C++Runtime Library, then that's the step you should start at.

How to Fix a Runtime Error

Runtime errors pop up in a variety of situations, so the possible fixes are all over the board:

Restart the computer . This is the likely solution if your computer suddenly feels like it's running much slower than usual.

Some runtime errors are caused by memory-related issues, and restarting is the quickest way to close everything that's currently running on your PC. This will free up those previously used system resources for the program that's throwing the error.

Update the program to its latest version. The runtime error might be caused by a bug that hasn't yet been patched in the release that you're using.

For example, some users report a runtime error when they use NVIDIA GeForce Experience to check for graphics card updates. In this scenario, you'd update the NVIDIA program.

You might need to re-download it from the software maker's site if there isn't a built-in method for checking for updates.

This is a good time to also check for Windows updates .

Fully delete the program, and then reinstall it . An installation that doesn't quite finish properly can be the cause of the runtime error.

The update procedure in the previous step might have done this, but if you're still getting the error, it's time to completely delete the program and confirm that it's being reinstalled from scratch.

Some uninstallers don't do a great job at erasing every remnant of the file from the registry and hard drive. Try a dedicated program uninstaller if the normal tool from the app maker doesn't fix the error.

Install the latest Microsoft Visual C++ Redistributable package . If your error says something about the runtime components of the Visual C++ libraries, this is likely solution.

Use SFC scannow to repair corrupted Windows files . The SFC command is executed in a Command Prompt window, and might be the fix for the runtime error.

Run System Restore to return your computer to a previous state. This could fix the runtime error is if it's caused by the Windows Registry being corrupt.

Reinstall Windows . If focusing on a specific program didn't fix the runtime error, or if it's interfering with the way Windows works as a whole, resetting is your last option.

How Programmers Can Prevent Runtime Errors

If you're the software maker, GeeksforGeeks suggests several ways to avoid runtime errors . Follow that link for a deeper dive into the different types of runtime errors, with examples of why they're happening and what you can do to prevent them. Some fixes include avoiding variables that haven't been initialized, and not declaring too much stack memory.

With Internet Explorer shut down for good , you won't be able to update the browser to try and fix the problem. However, if you insist on using IE rather than moving to a new web browser, check your Adobe Acrobat plugin as it may contain an error. Update Acrobat Reader if possible, or reinstall it and try opening the PDF again.

First, perform a clean boot of your Windows machine and see if that takes care of the problem. If not, you'll need to use an uninstaller program to try and get rid of the software.

First, verify that the problem is Chrome by attempting to visit the website giving you the error in a different web browser. If Chrome is the problem, clear out the cookies for that site in Chrome, restart the browser, then visit the website again. If the problem persists, check Chrome for updates .

Get the Latest Tech News Delivered Every Day

  • How to Fix Mfc100u.dll Not Found or Missing Errors
  • How to Fix Mfc100.dll Not Found or Missing Errors
  • How to Fix Mfc110.dll Not Found or Missing Errors
  • How to Fix Vcomp110.dll Not Found or Missing Errors
  • How to Fix Msvcrt.dll Not Found or Missing Errors
  • How to Fix Msvcr110.dll Not Found or Missing Errors
  • How to Fix D3dx9_26.dll Not Found or Missing Errors
  • How to Fix Physxloader.dll Is Missing or Not Found Errors
  • How to Fix Shell32.dll Not Found or Missing Errors
  • How to Fix 'Msvbvm50.dll Not Found or Missing' Errors
  • How to Fix D3d9.dll Not Found or Missing Errors
  • How to Fix Mfplat.dll Not Found or Missing Errors
  • How to Fix Mss32.dll Not Found or Missing Errors
  • How to Fix D3dcompiler_43.dll Not Found or Missing Errors
  • How to Fix D3dx9_42.dll Not Found or Missing Errors
  • How to Fix Msvcp100.dll Not Found or Missing Errors

By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts.

Guiding Tech

We explain and teach technology, solve tech problems and help you make gadget buying decisions.

Top 7 Ways to Fix Runtime Errors on Windows 11

Do you keep getting runtime errors every time you launch specific programs on Windows 11? Well, then it’s certainly a cause for concern. If the standard fixes, such as restarting the program or your computer, don’t work, it’s time to dig a little deeper.

how to fix a runtime error

There can be several reasons behind a runtime error, ranging from damaged system files to improper program installation . Below are some effective troubleshooting tips you can employ to fix runtime errors on Windows 11.

1. Run SFC and DISM Scans

Damaged or corrupted system files on your PC can cause runtime errors. Fortunately, Windows includes some built-in tools that can help you easily repair those system files.

Before begin troubleshooting, it’s essential to ensure that filesystem on your harddrive or SSD isn’t suffering from any errors. For that, you can run an SFC (or System File Checker) scan on your PC by following the steps below.

Step 1: Right-click on the Start icon and select Terminal (Admin) from the list.

how to fix a runtime error

Step 2: In the console, run the following command and press Enter:

how to fix a runtime error

After the scan completes, you’ll see details if there are any errors. Also, you’ll find instructions to repair those errors from the command prompt.

After that, run the DISM (Deployment Image Servicing and Management) scan.

Launch Windows Terminal with administrative privileges (as shown above), run the following commands one by one and press Enter after each command:

how to fix a runtime error

It’s normal for the process to appear stuck at times. So, do not close the Terminal window until the scan is complete. Restart your PC only after you see the message of the scan completed and see if the runtime error appears again.

2. Repair Microsoft Visual C++ Redistributable Packages

Problems with the Visual C++ Redistributable packages on your PC can also give rise to runtime errors on Windows 11. You can try repairing them to see if that helps.

Step 1: Click the search icon on the Taskbar, type in control panel, and press Enter.

how to fix a runtime error

Step 2: Use the drop-down menu in the top right corner to change the view type to large or small icons. Then, go to Programs and Features.

how to fix a runtime error

Step 3: Select the Microsoft Visual C++ Redistributable package and click on Change. You’ll have to repeat this process to repair all the packages.

how to fix a runtime error

Step 4: Hit the Repair button and wait for the process to complete.

how to fix a runtime error

3. Reinstall Microsoft Visual C++ Redistributable Packages

If repairing Microsoft Visual C++ Redistributable packages does not help, you can try reinstalling them. Here’s how you can go about it.

Step 1: Press the Windows key + R to open the Run dialog box. Type appwiz.cpl in the Open field and press Enter.

how to fix a runtime error

Step 2: Select the Microsoft Visual C++ Redistributable package and click on Uninstall.

how to fix a runtime error

Step 3: Click Uninstall to confirm.

how to fix a runtime error

Repeat the above steps to remove all the old, unwanted packages. Next, head over to Microsoft’s website to download the latest Microsoft Visual C++ Redistributable packages.

Download Microsoft Visual C++ Redistributable

Double-click the setup file and follow the on-screen prompts to finish the installation. Following this, runtime errors should no longer appear on Windows 11.

4. Reinstall the Program Causing the Runtime Error

If the runtime errors only occur when you launch a specific program, it could be due to improper installation. In that case, you should uninstall that program and install it again.

To uninstall a program, press the Windows key + R to open the Run dialog, type in appwiz.cpl, and press Enter.

Select the program you want to remove and click Uninstall. Then, follow the on-screen prompts to uninstall the program.

how to fix a runtime error

Reinstall the program and check if you still encounter the runtime error.

5. Install Windows Updates

Microsoft releases regular updates for Windows 11 to add new features, improve security, and fix known bugs. If the runtime errors on Windows 11 are occurring due to a buggy build, updating Windows 11 to its most recent version should help.

To check for system updates, press the Windows key + I to open the Settings app. Switch to the Windows Update tab and click on Check for updates.

how to fix a runtime error

Download and install any pending Windows updates and check if that fixes the issue.

6. Try Clean Boot Mode

It’s possible that a third-party program or service running in the background is interfering with Windows and causing such runtime errors. You can verify this possibility by booting your PC in a clean boot state . Here’s how.

Step 1: Press the Windows key + R to open the Run dialog. Type msconfig  in the box and press Enter.

how to fix a runtime error

Step 2: Under the Services tab, check the box that reads ‘Hide all Microsoft services’ box. Then, click Disable all button.

how to fix a runtime error

Step 3: Switch to the Startup tab and click on Open Task Manager.

how to fix a runtime error

Step 4: In the Startup tab, select a third-party app and click on Disable at the top. Similarly, disable all the other third-party programs.

how to fix a runtime error

Restart your PC after this. If the runtime errors no longer appear in the clean boot state, one of the third-party apps or programs is to blame. You’ll need to remove any recently installed apps and programs individually.

7. Perform System Restore

You may also consider performing a system restore . Putting the Windows to its earlier, best known state before the runtime errors started appearing, can help run apps and programs. Here’s how.

Step 1: Click on the Windows Search icon on the Task bar, type in create a restore point , and select the first result that appears.

how to fix a runtime error

Step 2: Under the System Protection tab, click on the System Restore button.

how to fix a runtime error

Step 3: Click Next.

how to fix a runtime error

Step 4: Select the restore point before the error first occurred. Then, hit Next.

how to fix a runtime error

Step 5: Lastly, click Finish.

how to fix a runtime error

Your PC will restart and restore to its previous state. After that, runtime errors should no longer bother you.

No More Interruptions

Although runtime errors can appear with various error codes, you can deal with most of those errors using the solutions above. Go through the above fixes one by one and let us know which one worked for you in the comments below.

Last updated on 31 July, 2022

The above article may contain affiliate links which help support Guiding Tech. However, it does not affect our editorial integrity. The content remains unbiased and authentic.

how to fix a runtime error

DID YOU KNOW

how to fix a runtime error

Pankil Shah

Pankil is a Civil Engineer turned freelance writer from Ahmedabad, India. Since his arrival at Guiding Tech in 2021, he delves into the world of how-tos, and troubleshooting guides on Android, iOS, Windows, and the Web at Guiding Tech. When time permits, he also writes at MakeUseOf and Techwiser. Besides his new-found love for mechanical keyboards, he's a disciplined footfall fan and continues to plan his international travels with his wife.

More in Windows

how to fix a runtime error

Top 13 Ways to Fix Windows 10 Network Adapter Missing Issue

how to fix a runtime error

How to Fix Windows 10 Photos App File System Error

Join the newsletter.

Get Guiding Tech articles delivered to your inbox.

site logo

How to Fix a “vcruntime140.Dll Is Missing” Error on Windows 10

You can always count on Microsoft for cryptic error messages

Author avatar

If you’re seeing a missing DLL error on your Windows PC, it’s usually a sign that something has gone wrong. It could be that your software is corrupted and needs reinstalling, or it could point to deeper issues with your PC, such as corrupt system files or a stubborn malware infection .

Another major cause, however, are missing or corrupted software libraries that allow programs to run on Windows. A “vcruntime140.dll is missing” error, for instance, points to a missing or corrupted Microsoft Visual C++ runtime installation. If you want to fix this issue, here’s what you’ll need to do.

how to fix a runtime error

Repairing or Removing a Microsoft Visual C++ Installation

The vcruntime140.dll file is part of the Microsoft Visual C++ software runtime library. Provided by Microsoft, this library is used as part of the process of compiling software (created in C++ using Visual Studio) to run on Windows PCs. If the file is missing, the “vcruntime140.dll is missing” error will appear.

To fix this issue, the first thing you should attempt is to repair the Visual C++ installation on your PC. If that doesn’t work, you should remove it entirely by following these steps, then proceed to the next section to reinstall it.

  • To repair a Visual C++ installation, you’ll need to open the Settings menu. To do this, right-click the Windows Start menu and select the Settings option.

how to fix a runtime error

  • In the Settings menu, select Apps > Apps & features . On the left, you’ll see a list of installed apps. Scroll through the list or use the search bar until you find the Microsoft Visual C++ 2015-2019 Redistributable option listed. If it’s missing, proceed to the next section.

how to fix a runtime error

  • If the Microsoft Visual C++ 2015-2019 Redistributable option is listed, however, select it, then select the Modify option.

how to fix a runtime error

  • In the Microsoft Visual C++ 2015-2019 Redistributable window that opens, select the Repair option.

how to fix a runtime error

  •  Allow the process to complete, then restart your PC. If you still see a “vcruntime140.dll is missing” error, you’ll need to remove the Microsoft Visual C++ runtime entirely and reinstall it. To do this, select Uninstall > Uninstall in the Settings > Apps > Apps & features menu.

how to fix a runtime error

  • In the Microsoft Visual C++ 2015-2019 Redistributable window that opens, select the Uninstall option and allow the process to complete. Once it’s finished, restart your PC and continue to the next section. 

how to fix a runtime error

Installing or Reinstalling a Microsoft Visual C++ Installation

Without the Microsoft Visual C++ runtime library installed, software that relies on it won’t work, so you’ll need to install it. You’ll also need to do this if you’ve removed a corrupted installation previously.

  • First, head to the Visual Studio website to download the latest version of the software runtime library. Scroll down towards the bottom of the page, then select the Other Tools, Frameworks, and Redistributables category to view the available options. From there, select the correct CPU architecture for your PC (eg. x64 for 64-bit PCs, x86 for 32-bit PCs, or ARM64 for ARM-based devices), then select the Download button.

how to fix a runtime error

  • Run the installer file (eg. VC_redist.x64.exe ) once the download is complete. In the installer window, accept the license terms by selecting the checkbox provided, then select the Install button to proceed.

how to fix a runtime error

  • Allow the installer a few moments to complete. If it installs without any issues, select the Close button to close the window, then restart your PC.

how to fix a runtime error

This should, for most users, resolve the “vcruntime140.dll is missing” error on Windows 10 PCs. However, if the software you’re running requires an older version of the Visual C++ runtime (before 2015), you’ll need to download and install the older version instead.

You may also be able to fix the issue by removing and reinstalling software that has an older version of the Visual C++ runtime installer included. This is common in larger software bundles, such as games, that require multiple runtime libraries to work correctly.

By reinstalling software that’s coupled with an older Visual C++ runtime installer, the specific version of that library required to run the software should automatically reinstall itself and resolve any lingering issues.

Running Windows Update

The Microsoft Visual C++ runtime receives security updates through Windows Update, just like other major Windows services. If you’re having trouble with a “vcruntime140.dll is missing” error, it might be worth checking for any recent updates using the Windows Update service.

While this is unlikely to fix a broken installation, installing new updates could repair your installation automatically. You can check for new system updates in the Settings menu.

  • To access this, right-click the Start menu, then select the Settings option.

how to fix a runtime error

  • In the Settings menu, select the Update & Security option, then select Windows Update in the next menu.

how to fix a runtime error

  • Select the Check for Updates option to search for new updates. If there are updates pending, select the Restart now option instead.

how to fix a runtime error

Windows will check for updates and install any that are currently pending. Once installed, you’ll need to restart your PC to ensure that they’ve been correctly applied. You should then check your software to see if the missing runtime issue is resolved.

Downloading DLL Files Online

If very specific error messages like “vcruntime140.dll is missing” start to appear, you might be tempted to source the file online to fix it. Various DLL download sites exist, allowing you to quickly download the missing file to resolve the issue.

how to fix a runtime error

We would recommend avoiding sites like these, however. DLL files are crucial elements of the Windows operating system that allow software to interact with more restricted Windows components. Unless you absolutely trust the source, it’s usually a better idea to remove and reinstall the entire Visual C++ runtime library instead.

This should resolve the issue for most users, but if you’re still having issues, you could source the file from another PC in your network as a last resort.

Keeping Windows 10 Maintained

The steps above should help you to fix a “vcruntime140.dll is missing” error on your Windows 10 PC. In most cases, repairing the installation or reinstalling the Visual C++ redistributable should fix the issue, but you may also need to look at removing and reinstalling any affected software .

A missing DLL file is usually a sign of a PC that’s having some issues, which is why it’s important to keep up with regular PC maintenance. You can do this by keeping Windows updated to ensure you have the latest bug fixes, as well as running regular malware scans to remove malware that could leave your PC at risk.

' src=

Ben Stockton is a freelance technology writer based in the United Kingdom. In a past life, Ben was a college lecturer in the UK, training teens and adults. Since leaving the classroom, Ben has taken his teaching experience and applied it to writing tech how-to guides and tutorials, specialising in Linux, Windows, and Android. He has a degree in History and a postgraduate qualification in Computing. Read Ben's Full Bio

Read More Posts:

how to fix a runtime error

What Are Runtime Errors, and How Do You Fix Them?

Runtime errors can really hamper your productivity, but how do you stop them from popping up? Here's a guide about the most common kinds.

Don't you hate when you're trying to start a program and get an error message that says "Runtime Error"? Unfortunately, despite regularly annoying people, the dreaded runtime error doesn't do a great job explaining itself and what happened exactly.

Runtime errors come in different shapes and sizes, and they are notorious for interrupting your workflow. As such, here are some of the more common runtime errors, what causes them, and how to solve them if they arise.

What are Runtime Errors?

A runtime error occurs within a program while it's currently running. Runtime errors are defined by how they happen after the program has been compiled, instead of during the program's development. What's frustrating about runtime errors is that they can cause the program to shut down unexpectedly, and it's sometimes hard to pin down a singular cause.

The Different Types of Runtime Errors

Several different kinds of runtime errors can occur, so it's a good idea to learn what they are and what causes them. That way, you'll know exactly what to do when one rears its ugly head.

1. The Divide By Zero Error

Your computer does a lot of math while it's processing data, and that means that errors can crop up when performing even simple arithmetic. For example, one common runtime error is called a "Divide By Zero" error. This one is pretty on the nose; it happens when your computer is doing calculations and tries to divide a number by 0.

When you try to divide a number by 0, you will wind up with an undefined number. When a computer does this, it doesn't know what to do with the undefined number and causes the program to crash.

This is, unfortunately, not the type of error that you can solve on your side of things. If you identify a divide-by-zero error, the best thing to do is contact the software developer.

2. Errors Caused By an Incomplete Installation

Sometimes, things go wrong during the installation process. There are plenty of reasons why a program won't install properly, and when this happens, it can lead to issues.

Sometimes, certain files aren't installed, or the installation package is buggy. In any case, if the program isn't installed properly, certain files that the program needs to run might not exist, leading to a runtime error. In that scenario, the best thing to do is to reinstall the program or try finding a different version of the installation package.

3. Logic Errors in the Software's Programming

Regardless of how good a programmer is, there's always the occasional error. A logic error is a type of runtime error that could point to a mistake in the coding.

Related: Types of Programming Errors and How to Avoid Them

Hot take: coding is sort of complicated. There are thousands upon thousands of characters that need to be typed correctly for a program to run properly. If there are any typos in the code, it can lead to unexpected outputs. Because of this, the program can be buggy or even crash altogether.

The best thing to do is to contact the software developer. You should also check if you are running the most up-to-date version of the software. A later version might have the problem ironed out.

4. Errors Caused by Memory Leaks

Another pretty common runtime error is a memory leakage error. When a program is running, it uses up some of the RAM. Then, when the program is terminated, it communicates to the system that it's finished and releases that RAM so that other programs can use it. However, sometimes a program won't do this, and programs keep using new RAM until it runs out.

Related: How to Troubleshoot Low RAM or Memory Leaks in Windows

Imagine an apartment complex with 10 apartments, eight of which are occupied. If three tenants leave without telling the apartment management about it, the office believes eight apartments are still occupied when only five are. Then when three more people want to move in, the office turns away one person on the assumption there's no room for them.

A memory leakage can lead to RAM issues, sluggish performance, and program crashes. If this happens, a good solution is to restart the computer. This will clear out all of the RAM altogether.

5. The Non-Zero Exit Status Error

Software is composed of many lines of code. Every line needs to function properly to keep everything running smoothly. Unfortunately, there are times when a line doesn't work the way it's supposed to, which leads to errors.

One such error is called a non-zero exit status error. For different coding systems, each line of code is given an exit status, which is a number that tells if it was run successfully or not. If the computer ran the line successfully, then it gets a 0 as an exit status. If it gets between 1 and 255, then it's a failure. A good example is if you run a line that tries to access a file that doesn't exist on the computer, it will likely get an exit code of 1.

Related: Ways to Check if a File Exists Using Python

6. The Overflow Error

There are always limits when it comes to coding. For example, when trying to put a number to a variable (a.k.a, a property), there's a limit to how large that number can be. You get an overflow runtime error if you try to assign a larger number than that limit, which can cause the program to become unresponsive.

When you get an overflow error, you should start by checking if your software version is the latest one. If you're running the latest version, try reinstalling the software.

7. The Segmentation Fault Error

Segmentation fault errors are the most common type of runtime error. There are certain rules that a program needs to follow when accessing and writing to memory. When some of these rules are broken, you run the risk of getting a segmentation fault error.

There are multiple ways that a segmentation fault error can happen. Some common causes are:

  • when a program tries to write to read-only memory
  • when a program tries to access memory that it's not allowed to access
  • when a program tries to dereference freed memory or NULL pointers
  • when a program tries to access more data than it's allowed
  • when a program tries to write a location that it's not allowed to

If you run into one of these issues, Stack Overflow has an excellent list of solutions you can try, so be sure to give it a look.

A Lot of Runtime Errors in the Wild

This is just the tip of the iceberg when it comes to runtime errors. The list goes on, as there are numerous errors and even more ways to cause them. The best thing to do is to study more runtime errors, how to identify them, and how to solve them; it can help prevent a lot of trouble.

Computer Hope

How to fix Windows runtime errors

If you're getting a runtime error code and error message (e.g., "Runtime error 75 path/file access error"), skip to the runtime error listing for a listing of runtime error codes and errors.

Microsoft Windows Runtime errors can be caused by a lot of different problems with the computer. Follow the steps below to help find and fix all Runtime errors.

Windows Runtime error

Conflict with TSR or another running program

If you're encountering a runtime error message in Windows, verify a third-party program or TSR (terminate-and-stay-resident) by end tasking all open programs.

  • How to remove TSRs and startup programs.

If, after end tasking all TSRs, you still have problems in Windows 95 or Windows 98, check autoexec.bat and config.sys for programs loading that are causing your issue. Then, temporarily disable these programs by renaming the files. Follow the instructions below for more information.

  • Boot to MS-DOS.
  • Once at the MS-DOS prompt, type:
  • Once completed, reboot the computer.

Software issue

If your issue persists, the program, utility, or game causing the runtime error may have issues. Verify through the developer's website that all available updates or patches are downloaded and applied.

If no patches or updates are available, uninstall and reinstall the program that is causing the issue. If you are having a runtime error in your operating system , reinstall the operating system.

Add-on, plug-in, or other extra software

Many runtime errors are also caused by other add-ons , plug-ins , or extra software installed on the computer. If you have any additional software associated with the program causing the error, update or uninstall it, and see if that resolves the issue.

Computer virus

Because computer viruses and malware can tamper with the system settings or memory, it can cause a runtime error. If you are currently running a virus protection program on your computer, ensure it is fully updated with the latest virus definitions.

If you do not have a computer virus protection program, we recommend one be purchased or that a demo be temporarily downloaded to scan your computer hard drive for viruses.

Memory issue

Finally, if you have followed all the above recommendations and are still getting runtime errors, you may be encountering a hardware or memory related issue. We recommend you first contact the developer of the program causing the issue for any possible solutions. If no solutions are found, we recommend you contact the computer or motherboard manufacturer for additional recommendations or service.

  • How to fix low memory and out of memory errors.
  • Computer companies and contact information.

Runtime error listings

Below is a listing of Microsoft Windows and Windows software runtime error codes and related Runtime error messages. Each error has additional information on what's causing the Runtime error and how to fix the problem.

Related information

  • See the runtime error definition for related information.
  • Computer virus help and information.
  • Microsoft Windows help and support.

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

How to fix runtime errors in Internet Explorer

  • 3 contributors

The retired, out-of-support Internet Explorer 11 desktop application has been permanently disabled through a Microsoft Edge update on certain versions of Windows 10. For more information, see Internet Explorer 11 desktop app retirement FAQ .

A runtime error is a software or hardware problem that prevents Internet Explorer from working correctly. Runtime errors can be caused when a website uses HTML code that's incompatible with the web browser functionality.

Original product version:   Internet Explorer Original KB number:   822521

Which runtime error do you need to fix

The solution to runtime error messages in Internet Explorer is different depending on the type of runtime error that you receive.

This article provides a resolution only for the following error message:

Error A Runtime Error has occurred. Do you wish to Debug? Line: line number Error: nature of script error

Screenshot of the Runtime Error message box.

Because this type of error message doesn't apply to you, you can prevent it from appearing. To do so, follow these steps in Internet Explorer:

Select the Tools button, and then select Internet Options . Or, press ALT+T, and then press O.

In the Internet Options dialog box, select the Advanced tab.

Select the Disable script debugging (Internet Explorer) and Disable script debugging (Other) check boxes. Then clear the Display a notification about every script error check box.

Screenshot of the Internet Options window. Under Advance tab, the three check boxes are set.

Select OK to close the Internet Options dialog box.

Test the resolution

To see whether the problem is fixed, open or refresh the Web site that caused the error.

If the Web site displays and works correctly, and if the runtime error message doesn't reappear, then you're finished. You may still receive a notification about the Web page error in the Internet Explorer status bar. However, you can just ignore the Web page error. If this computer has multiple users, you might also need to sign in as another user and repeat these steps for other users.

If the Web site still doesn't display or work correctly, the problem may be with the Web site itself. But to test it, either you must have access to another computer, or your computer must be set up for multiple users. If you have access to another computer, try to view the page from that other computer. If your computer is set up for multiple users, sign in as another user, and then try to view the page again.

If the Web site still doesn't display or work correctly, the problem is likely with the Web page itself. So you might want to contact the owner of the Web page to ask them to fix the problem.

Was this page helpful?

Submit and view feedback for

Additional resources

MiniTool

  • Disk & Data Manager
  • Partition Wizard
  • Power Data Recovery
  • ShadowMaker
  • Media Toolkit
  • uTube Downloader
  • Video Converter
  • Download Partition Wizard Free Edition: Download Pro Edition: Try Demo Server Edition: Try Demo
  • Resize Partition

The Step-by-Step Guide to Fix Runtime Error on Windows 10  

You may encounter runtime error in various cases, so you should try some methods to figure it out. In today’s article, MiniTool will analyze the potential causes for the run time error and provides you with a step-by-step guide to fix the error.

What You Should Know About Runtime Error

What is runtime error?

Runtime error refers to an issue occurred when launching a piece of software. It is different from the error that happens when the program already starts running, especially you open that application for the first time.

When the runtime error c ++ happens, a window will pop up that contains the error code and the detailed information about the affected application. Besides, it will advise you contact the support team of the application for more information.

runtime error

What causes runtime error?

Reasons for the runtime error vary on different applications. If you are not sure what causes the error actually, pay attention to the content below. 

Runtime error is associated with hardware or software that stops applications and programs to run properly. Programming glitches are not rectified in the process of application development. You are running two incompatible software programs. Other factors like memory leak, programming errors, incomplete installation, and corruption Registry can also trigger the runtime error.

Other factors like memory or storage space not enough, incompatible applications, errors with malware software or advertisement software, outdated or damaged hardware can also lead to the c ++ runtime error.

Types of runtime error

  • AppModel runtime errors 57, 87, 490: According to user reports, this error shows up every time a Windows 10 app is installed, reinstalled, or updated via Microsoft Store.
  • NVIDIA GeForce Experience C++ runtime error: It may appear when you check for Nvidia graphics card updates.
  • Microsoft Visual C++ runtime library: This error pops up every time the computer is turned on.
  • Runtime error 1004 in Excel: This error will interrupt Microsoft Excel users. It is related to Microsoft Visual Basic.
  • .Net runtime error 1026: The error message “The process was terminated due to an unhandled exception, Exception code c00000fd” comes with this error. When the error occurs, you may find that the application often crashes or refuses to start while trying to run it.
  • Atibtmon.exe runtime error: The error usually occurs when you disconnect or unplug the AC power cord from the Windows 10 device.

What effects does the runtime error bring?

The runtime error can give rise to information missing of the current operated files, file errors or corruption with files and the failure of certain features that you are using. Different from stop error, runtime error will not cause a program to stop working in most cases.

Therefore, the question that fixing runtime error to avoid the consequences described above becomes an important issue. Here are some available methods for you and you can take them as reference.

Solution 1: Temporarily Disable Microsoft Services

As mentioned earlier, two incompatible applications run simultaneously can lead to the run time error. The application occupies too many system resources so that there are not enough resources for the new app.

However, you are not sure what applications on your computer causing the error. So, you can close unnecessary application to fix the error. Utilize Windows Task Manager to close all the unnecessary programs, and then reopen the application that you would like to run.

Here are specific steps for you.

Step 1: Press Windows plus R keys to open the Run window. Type msconfig in the dialog window, and then click the OK button to continue.

Step 2: Then the System Configuration window will pop up in the page. In the General tab, uncheck the Load Startup items option under Selective Startup .

uncheck the Load Startup items option under Selective Startup

Step 3: After that, navigate to Services tab and check the Hide all Microsoft Services checkbox.

Step 4: After clicking Disable all , click on the OK button to save changes and exit.

check the Hide all Microsoft Services checkbox

Step 5: Reboot your computer and check whether the runtime error is fixed successfully or not.

Solution 2: Run the Application in Safe Mode

Safe Mode is a special diagnostic mode in Windows operating system, which is very useful for solving hardware and software issues. It aims to fix most errors within your operating system. You may be rather acquainted with this mode.

When the runtime error occurs, you can try running the application in Safe Mode. Firstly, enter the Safe Mode by following the steps below.

Step 1: Right click the Start button, and then select Settings from the menu.

Step 2: Navigate to Update & Security . Click Recovery , and then click Restart now .

click restart now

Step 3: Then you will enter Windows Recovery Environment. Follow the path: Troubleshoot > Advanced options > Startup Settings > Restart . Then Windows will restart into the Startup Settings page. You can enter the Safe Mode by pressing either F4 , F5 or F6 .

Step 4: Then run your application now.

Solution 3: Ensure That You Have Enough Memory and Storage Space

Not enough memory or disk space also causes the runtime error. How to fix runtime errors effectively? Ensuring that you have enough space on your hard disk helps. Therefore, the first step is to find a disk analyzer tool to calculate how much available disk space you have now.

The Space Analyzer feature of MiniTool Partition Wizard can help you accomplish that operation with ease. Actually, this software is a professional partition manager with multiple powerful features such as Wipe Disk , Disk Benchmark, Data Recovery, Format Partition , etc.

It is a free and safe disk space analyzer, which allows you do finish the whole operation with a few clicks. You can get this reliable software immediately by clicking the button.

MiniTool Partition Wizard Free Click to Download 100% Clean & Safe

To get more details about how to analyze disk space usage condition, please refer to this post: What Is Taking up Space on Windows 10? Disk Space Analyzer Helps!

When you know what files or folders taking up your disk space, right click them to delete right now. You are able to free up some space in this way. To know more methods to free up disk space, please read this post: 10 Ways to Free up Disk Space in Windows 10 [2019 Update]

Here, I would like to introduce you two approaches to obtain more disk space. Both of them are operated on MiniTool Partition Wizard Free Edition. So, you need to download and install the software before starting carrying out the two methods below. Please click the following button to acquire this wonderful software.

Way 1: Move/Resize Partition

When there is unallocated space in front of or behind the partition, you can utilize the Move/Resize Partition feature of MiniTool Partition Wizard. But there’s one thing you need to remember is that the unallocated space must be contiguous.

This is an indirect way to increase disk space. Here is the step-by-step guide to move/ resize partition on MiniTool Partition Freed Edition.

Step 1: Right click the target partition, and then select the Move/Resize option from the right function list. Alternatively, you can choose the target partition and click the Move/Resize Partition feature in the left action panel.

select the Move/Resize option

Step 2: You can determine the location and size of the target partition by moving the button just as the following picture shows. Then click the OK button to save the changes.

determine the location and size of the target partition

Step 3: Click on the Apply button on the top left corner of the main page to execute the operation.

click the Apply button to carry out the operation

Way 2: Extend Partition

The Extend Partition feature of MiniTool Partition Wizard allows you to take space from any other partitions or unallocated space on the same disk to increase your target partition size.

When you encounter the following two conditions, it is recommended to use Extend Partition feature.

  • Expand a partition to non-contiguous unallocated or free space.
  • There’s no unallocated or free space on the hard disk.

In this way, you can obtain more space for the partition. Here are steps to extend partition in MiniTool Partition Wizard Free Edition to increase disk space.

Step 1: Right click the target partition, and then select the Extend feature in the function menu next to the partition. Alternatively, select the target partition and click on the Extend Partition feature in the left side of the main page.

choose the extend partition feature

Step 2: Select a partition that you would like to take free space from, and then decide how much free space you want to take from the selected partition. After that, click OK to save the changes and click Apply to carry out the extending operation. You can clearly see that the above operations are shown in the following picture.

decide the amount and source space that you want to extend

Both of the two methods are effective to increase your disk space. You are able to choose one freely.

Solution 4: Scan for Malware

It is not a rare case that the malware and virus appear in some applications resulting in runtime error. Hence, scanning your computer for malware or virus to ensure the application is not infected is a good idea.

Utilize your installed software to scan your PC. After finding it, disable it immediately. You can find some fantastic antivirus software in this article: Is Antivirus Necessary for Windows 10/8/7? Get the Answer Now!

Solution 5: Repair Visual C++ Runtime

The runtime error is involved in Microsoft Visual C ++ Runtime Library. When the run time error happens, you can consider repairing Visual C++ runtime. Here are specific steps.

Step 1: Open Run dialog window first, and then type cpl and press the Enter key.

Step 2: Look through the list and disable all the Microsoft Visual C++ runtimes except 2010 and 2012.

Step 3: Find and click on Microsoft Visual C++ runtime 2012 among the list. Then click the Repair option from the Repair , Uninstall and Close three options. The system requires you reboot your PC then. Restart the computer to fix the runtime error as the instruction suggests.

Solution 6: Reinstall Visual C++ Runtime

If repairing Visual C++ cannot fix the runtime error, try reinstalling it instead. Here’s how to do.

Step 1: Open the Run window by pressing Win plus R keys. Type appwiz.cpl and hit the Enter key to go on.

type appwiz.cpl

Step 2: Find Microsoft Visual C++ programs in the list. Then uninstall them one by one.

find Microsoft Visual C++ programs

Step 3: Download a new copy of Microsoft Visual C++ by clicking here , and then install it to your computer.

Solution 7: Perform a Clean Boot

Only necessary services and applications are loaded in the Clean Boot . This program will prevent all third-party applications from loading at startup. Hence, if there’s any conflict between the application and Visual C++ software, you should conduct a Clean Boot to fix the conflict.

Step 1: Login to your computer with administrative rights.

Step 2: Type msconfig in the Run window to open System Configuration .

Step 3: Navigate to Services tab and uncheck Hide all Microsoft services , and then click Disable all and click on OK to save changes.

Step 4: Navigate to the Startup option and click Open Task Manager .

open task manager

Step 5: Click the Startup button in Task Manager .

Step 6: Right click any application that is in Enabled status in the list and then click the Disable option from the pop-up function menu.

Step 7: After that, reboot your computer. Now, the PC is in the Clean Boot state. Check whether the runtime error still persists.

If the error is fixed, it can be confirmed that third-party applications cause the error. If the error still exists, enable the programs back according to the steps above and try other solutions to fix the run time error.

Solution 8: Rollback/Reinstall Display Driver

Rolling back/reinstalling display driver has been used by many users. Many applications require run time, thus Windows is dependent on it heavily too. In this case, it is recommended that rolling back to the previous version of Display Driver.

If there’s no available previous Display Driver version, reinstall a version from last year to test instead.

Here is the guide to roll back/reinstall Display Driver.

Step 1: Press Windows and X keys to open the function list. Select Device Manager from the list.

click on device manager

Step 2: Expand Display adapter , and then select your display adapter. Right click the adapter and select the Properties option. Navigate to the Driver tab in the pop-up window.

navigate to the Driver tab

Step 3: Click on Roll Back Driver . After testing each rollback, you can see which version works for you actually.

Step 4: If none of them work, reinstall the Display Driver from the manufacturer’s site and disable updates from installing the driver.

Fixed: Windows 10 Update KB4515384 Causes Adapter Failure

Do you know that the latest Windows 10 update KB4515384 causes adapter failure? Are you one of the victims? Here are solutions to fix the failure are provided.

I successfully solve the runtime error with the methods provided by MiniTool. Are you bothered by this vexing issue now? Read this post to fix it. Click to Tweet

How to fix runtime errors? Read here, you may have some answers in your mind or know the possible causes for run time error at least. You can either to exclude the reasons for the runtime error on your computer or try the given methods in the article one by one until the error is fixed.

If you have any thought about runtime error, please share with us in the comment zone below. When you have some doubt or questions about MiniTool software, don’t hesitate to leave your words in the comment area too. Alternatively, contact us by sending an email via [email protected] .

Runtime Error FAQ

Here are top 8 methods to fix the runtime error.

  • Temporarily disable Microsoft services
  • Run the faulty application in safe mode
  • Get enough memory and storage space
  • Scan for malware
  • Repair visual C++ runtime
  • Reinstall visual C++ runtime
  • Perform a clean boot
  • Rollback/reinstall display driver

About The Author

Amy

Position: Columnist

User Comments :

How to Fix VBA Runtime Error 32809 in 3 Minutes (Excel)

Written by Kasper Langmann

VBA Runtime Error 32809 is a common issue that Excel users encounter. This error can disrupt your workflow and cause significant frustration. However, the good news is that it can be resolved quickly and easily. In this guide, we’ll walk you through the steps to fix this error in just three minutes.

Understanding VBA Runtime Error 32809

The first step in resolving any error is understanding what it is and why it occurs. VBA Runtime Error 32809 is typically triggered when Excel is unable to correctly execute a VBA (Visual Basic for Applications) code. This can happen due to a variety of reasons, such as corrupted Excel files, issues with the Excel application itself, or problems with the VBA code.

When this error occurs, you’ll usually see a message that says “Runtime Error 32809: Application-defined or object-defined error.” This error can prevent you from running VBA macros or even opening Excel files, which can be a major inconvenience if you rely on Excel for your work.

Common Causes of VBA Runtime Error 32809

There are several common causes of VBA Runtime Error 32809. Understanding these causes can help you prevent the error from occurring in the future.

Corrupted Excel Files

One of the most common causes of this error is corrupted Excel files. This can happen if the file is not saved properly, if there is a sudden power outage while the file is open, or if the file is infected with malware. When an Excel file is corrupted, it can cause various issues, including VBA Runtime Error 32809.

Issues with Excel Application

Another common cause of this error is issues with the Excel application itself. This can happen if the application is not installed properly, if it is outdated, or if it has been modified in some way. If the Excel application is not functioning correctly, it can cause various errors, including VBA Runtime Error 32809.

Problems with VBA Code

The error can also be caused by problems with the VBA code. This can happen if the code is not written correctly, if it contains errors, or if it is not compatible with the version of Excel you are using. If there are issues with the VBA code, it can cause Excel to generate the VBA Runtime Error 32809.

How to Fix VBA Runtime Error 32809

Now that we understand what VBA Runtime Error 32809 is and why it occurs, let’s look at how to fix it. Here are the steps you can follow to resolve this error in just three minutes.

Step 1: Check the VBA Code

The first step in resolving this error is to check the VBA code. Look for any errors or issues in the code that could be causing the error. If you find any errors, correct them and then try running the code again. If the code runs successfully, then the error has been resolved.

Step 2: Update Excel

If the error is not resolved by correcting the VBA code, the next step is to update Excel. Sometimes, outdated versions of Excel can cause various errors, including VBA Runtime Error 32809. To update Excel, go to the “Help” menu in Excel and select “Check for Updates.” If any updates are available, install them and then try running the VBA code again.

Step 3: Reinstall Excel

If updating Excel does not resolve the error, the final step is to reinstall Excel. This can resolve any issues with the Excel application that could be causing the error. To reinstall Excel, first uninstall it from your computer, then download the latest version from the Microsoft website and install it. After reinstalling Excel, try running the VBA code again. If the code runs successfully, then the error has been resolved.

Preventing VBA Runtime Error 32809

While it’s important to know how to fix VBA Runtime Error 32809, it’s even more important to know how to prevent it from occurring in the first place. Here are some tips to help you avoid this error.

Keep Excel Updated

One of the best ways to prevent this error is to keep Excel updated. Microsoft regularly releases updates for Excel that fix various issues and bugs, including those that can cause VBA Runtime Error 32809. By keeping Excel updated, you can ensure that it is functioning correctly and avoid this error.

Write Clean VBA Code

Another way to prevent this error is to write clean VBA code. This means writing code that is clear, concise, and free of errors. By writing clean VBA code, you can reduce the chances of encountering VBA Runtime Error 32809.

Backup Your Excel Files

Finally, backing up your Excel files can also help prevent this error. If an Excel file becomes corrupted, you can restore it from a backup instead of trying to fix the corrupted file. This can save you a lot of time and frustration, and it can also prevent VBA Runtime Error 32809.

VBA Runtime Error 32809 can be a frustrating issue for Excel users, but it can be resolved quickly and easily. By understanding what this error is, why it occurs, and how to fix it, you can get back to your work in Excel in no time. And by taking steps to prevent this error, you can ensure a smoother, more efficient workflow in Excel.

  • 0 + Awards Received
  • 0 % Recovery Rate
  • 30 Years of Excellence

Recovers lost or deleted Office documents, emails, presentations & multimedia files.

  • Professional

Recovers deleted files, photos, videos etc. on Mac.

Recover photos, videos, & audio files from all cameras and storage on Windows or Mac.

iPhone Data Recovery

Recover deleted photos, videos, contacts, messages etc. directly from iPhone & iPad.

Video Repair

Repair multiple corrupt videos in one go. Supports MP4, MOV & other formats.

Photo Repair

Repair multiple corrupt photos in one go. Supports JPEG & other formats.

  • Exchange Repair Repair corrupt EDB file & export mailboxes to Live Exchange or Office 365
  • Outlook PST Repair Repair corrupt PST & recover all mailbox items including deleted emails & contacts
  • OLM Repair Repair Outlook for Mac (OLM) 2011 & 2016 backup files & recover all mailbox items
  • Exchange Toolkit Repair EDB & Exchange backup file to restore mailboxes, convert OST to PST, & convert EDB to PST
  • Active Directory Repair Repair corrupt Active Directory database (Ntds.dit file) & extract all objects in original form
  • EDB to PST Convert online & offline EDB file & extract all mailbox items including Public Folders in PST
  • OST to PST Convert inaccessible OST file & extract all mailbox items including deleted emails in PST
  • NSF to PST Convert IBM Notes NSF file & export all mailbox items including emails & attachments to PST
  • MBOX to PST Convert MBOX file of Thunderbird, Entourage & other clients, & export mailbox data to PST
  • OLM to PST Convert Outlook for Mac Data File (OLM) & export all mailbox data to PST in original form
  • GroupWise to PST Convert GroupWise mail & export all mailbox items - emails, attachments, etc. - to PST
  • EML to PST Convert Windows Live Mail (EML) file & export mailbox data - emails, attachments, etc. - to PST
  • Office 365 to PST Connect to Office 365 account & export mailbox data to PST and various other formats
  • Migrator for Office 365 Quickly migrate Outlook data files(OST/PST) directly to Office 365 or Live Exchange
  • SQL Repair Repair corrupt .mdf & .ndf files and recover all database components in original form
  • Access Repair Repair corrupt .ACCDB and .MDB files & recover all records & objects in a new database
  • QuickBooks Repair Repair corrupt QuickBooks® data file & recover all file components in original form
  • MySQL Repair Repair MyISAM & InnoDB tables and recover all objects - keys, views, tables, triggers, etc.
  • Excel Repair Repair corrupt Excel (.XLS & .XLSX) files and recover tables, charts, chart sheet, etc.
  • BKF Repair Repair corrupt backup (BKF, ZIP, VHDX and .FD) files and restore complete data
  • Database Converter Interconvert MS SQL, MySQL, SQLite, and SQL Anywhere database files
  • PowerPoint Repair Repair corrupt PPT files and restore tables, header, footer, & charts, etc. like new
  • File Repair Toolkit Repair corrupt Excel, PowerPoint, Word & PDF files & restore data to original form
  • Data Recovery Recover lost or deleted data from HDD, SSD, external USB drive, RAID & more.
  • Tape Data Recovery Retrives data from all types and capacities of tape drives including LTO 1, LTO 2, LTO 3, & others.
  • Virtual Machine Recovery Recover documents, multimedia files, and database files from any virtual machine
  • File Erasure Permanently wipe files and folders, and erase traces of apps and Internet activity.
  • Mobile Erasure Certified and permanent data erasure software for iPhones, iPads, & Android devices
  • Drive Erasure Certified and permanent data erasure software for HDD, SSD, & other storage media
  • Exchange Toolkit 5-in-1 software toolkit to recover Exchange database, convert EDB to PST, convert OST to PST, restore Exchange backup, and reset Windows Server password.
  • Outlook Toolkit Comprehensive software suite to repair PST files, merge PST files, eliminate duplicate emails, compact PST files, and recover lost or forgotten Outlook passwords.
  • File Repair Toolkit Powerful file repair utility to fix corrupt Word, PowerPoint, and Excel documents created in Microsoft Office. It also repairs corrupt PDF files and recovers all objects.
  • MS SQL Toolkit 5-in-1 software toolkit to repair corrupt SQL database, restore database from corrupt backup, reset database password, analyze SQL logs, & interconvert databases.
  • Data Recovery Toolkit Software helps to recovers deleted data from Windows, Mac and Linux storage devices. Also supports recovery from RAIDs & Virtual Drives.
  • MySQL Toolkit 3-in-1 software toolkit to repair Corrupt Mysql, MariaDB & Analyze logs, and Interconvert Databases.
  • Email Forensic Advanced email forensic solution for cyber experts to audit, analyze, or investigate emails & gather evidences.
  • Log Analyzer for MySQL Analyze forensic details of MySQL server database log files such as Redo, General Query, and Binary Log.
  • Exchange Auditor Exchange Server monitoring solution to automate audits, scans and generate reports ìn real-time.
  • Log Analyzer for MS SQL Track & analyze MS SQL Server database transactions log files.
  • Our Partners
  • Lab Services

Microphone Icon Android

Trending Searches

Data Recovery

Photo Recovery

File Erasure Software

Exchange Repair

Raid Recovery

MS SQL Repair

How to Fix Windows Runtime Error in Windows 10?

Summary: This blog discusses the best methods to fix Runtime Error in Windows 10. The reasons behind this error are also mentioned in this post with their quick fixes. However, as some methods may lead to data loss in severe cases, you must keep a Professional Windows Data Recovery software handy to recover lost data from your PC. Download the trial version now:

Free Download for Windows

How to Fix Windows Runtime Error?

Methods to fix windows runtime error in window 10, reinstall windows what about your data, conclusion:.

I am having trouble running a program. All I keep getting is a runtime error. Is there a way I can disable C++ and start again as I think this might be causing the conflict. The software manufacturer assures me that the software can run on both versions of Windows 10 (32 & 64bit). Can anyone help? It’s a brand new Lenovo touch screen computer.

Windows Runtime Error in Windows 10 is increasingly becoming a menace for Microsoft users. Several users are raising queries regarding this error on Microsoft and other technology forums. Whether you are using a professional version or home version, you must fix this error at the earliest. This error can cause your system to malfunction or even crash your Windows, leading you to lose your important data. Some tried and tested methods to fix Windows Runtime Error in Windows 10 are mentioned in this post.

  • Update your Graphics Driver
  • Download latest Visual C++ Runtime
  • Perform a clean boot
  • Run System File Checker
  • Reinstall Windows

Method 1: Update Your Graphics Driver

If you see, explorer.exe, logonui.exe, atibtmon.exe files in the Microsoft Visual C++ Runtime error, the reason could be faulty or corrupt graphic drivers. Try updating your graphic drivers to fix the issue by following the given steps:

  • Type devmgmt to open Device Manager . (See Figure 1)
  • On Device Manager screen, double-click Display adapters . (See Figure 2)
  • Right-click your selected graphic driver and click Update driver . (See Figure 3)
  • Select Search automatically for updated driver software .
  • If there is no driver available, click Uninstall device and select Delete the driver software for this device .
  • Click Uninstall and close the window and reboot your Windows 10 PC.

Method 2: Download latest Visual C++ Runtime

The Windows Runtime Error in Windows 10 can also occur due to damaged C++ components installed in your system. You will have to find and remove the existing Visual C++ installation to fix this error. Follow the given instructions:

  • Open Control Panel and go to Programs and Features . (See Figure 4)
  • Find Microsoft Visual C++ , select it, and click Uninstall .
  • Now, download and install the latest Visual C++ runtime from here to proceed and fix the issue.

Method 3: Perform a Clean Boot

This error could also be due to a corrupt, faulty or virus-infected third-party app or software running into your system. You need to run a clean boot on your system, which lets you identify which application/software or a program is causing this error. It is similar to Windows Safe mode. However, it offers you control over which program and service run at startup to isolate the cause of the Windows Runtime Error. To fix it, perform a Clean Boot with the following steps:

  • Go to Windows Search box; type msconfig and open System Configurations . (See Figure 5)
  • Go to Services and select Hide all Microsoft Services . (See Figure 6)
  • Click Disable All . (See Figure 7)
  • Go to Startup and click Open Task Manager . (See Figure 8)
  • On Task Manager screen, select the item, and click Disable . (See Figure 9)
  • Now, close Task Manager . On the Startup tab, click OK .
  • Restart your computer to bring it in a clean boot environment. Try installing, uninstalling, or running that application or software/program.

Now, restart your system normally to see if it works fine without any error.

Method 4: Run System File Checker

As we mentioned above that the reason behind this error might be corrupt, damaged or lost files, which could lead Windows system to malfunction or even crash. To prevent permanent data loss, try fixing this error by running System File Checker, scan your system to identify the missing, damaged or corrupt files and restore them. Follow the given steps:

  • Type cmd in the Windows search box.
  • Go to Command Prompt and click Run as administrator . (See Figure 10)
  • In Command Prompt window, type DISM.exe /Online /Cleanup-image /Restorehealth and hit Enter . (See Figure 11)
  • The DISM command uses Windows Update to provide the corrupt files.
  • Type /Source:C:\RepairSource\Windows /LimitAccess . (See Figure 12)

Note: On completion of this command process, you need to replace the C:\Repair Source Windows placeholder with the location of your repair source.

  • Now, type sfc /scannow and hit Enter . (See Figure 13)

[Caution : Do not close Command Prompt until the process is 100% complete. Once the scanning process is finished, the scan results will be shown on the window .]

Once the process completes, if you find the corrupt files but were unable to fix some of them, follow the given steps to run System File Checker procedure:

STEPS TO RUN SYSTEM FILE CHECKER (SFC)

  • Open Command Prompt and choose Run as administrator .
  • Type the following command (See Figure 14) and hit Enter :

“ findstr /c:”[SR]” %windir%\Logs\CBS\CBS.log >”%userprofile%\Desktop\sfcdetails.txt ”

  • Open Sfcdetails.txt file on your desktop.

Note: The Sfcdetails.txt file uses Date/Time SFC detail and checks which files could not be repaired. Search for the corrupted file, and replace it with a good copy.

Method 5: Reinstall Windows 10

If all the above-stated methods fail to work, you will end up with only one option i.e., reinstalling your Windows. However, reinstallation of Windows 10 might fix the error but there are chances that you may lose important data in the process.

It is necessary to recover your data from Windows PC before reinstalling Windows. When it comes to restoring your essential data and files from your system, it is advised to choose a professional Windows recovery software such as Stellar Data Recovery Professional . This DIY (Do-it-yourself) software can retrieve data from any Windows device or storage media. It can even retrieve data from crashed and unbootable system.

Windows Runtime Error may cause your system to crash or malfunction. Hence, it is necessary to fix this error. You may try the above-mentioned methods to resolve this error. However, some of the methods like wrong SFC (System File Checker) Process or reinstalling Windows, may lead to complete data loss. Therefore, before performing these fixes, it is recommended to retrieve your data with an efficient data recovery tool like Stellar Data Recovery Professional . The software scans the selected drive/partition or storage media; lets you select the files you want to restore; save them at the desired location.

About The Author

how to fix a runtime error

Mansi Verma is a Senior Technology Writer at Stellar® . She is a Tech enthusiast, holding over 8 years of experience in Data Recovery, IoT, Artificial Intelligence, and the Robotics technology domain. She loves researching and providing DIY solutions to solve Windows technical issues. In her spare time, she likes reading novels, and poetry. She also enjoys Travelling, Rafting, Trekking, etc.

Leave a comment Cancel reply

Your email address will not be published. Required fields are marked *

Image Captcha

Related Posts

Methods to fix the ftdibus.sys memory integrity issue on windows, unable to determine volume version and state – how to fix it & recover data, how to fix the “hard drive not installed” error, free trial for 60 days.

WHY STELLAR ® IS GLOBAL LEADER

WHY STELLAR ® IS GLOBAL LEADER

Why Choose Stellar?

Years of Excellence

R&D Engineers

Awards Received

Technology You Can Trust A Brand Present Across The Globe

This website uses cookies in order to provide you with the best possible experience and to monitor and improve the performance of the site in accordance with our cookie policy .

How To Fix Runtime Error in Windows 10?

Megha Sharma

Read time 6 minutes

Frequent Windows 10 Runtime Errors can disrupt the seamless operation of your computer system. These errors typically manifest when launching a program or application, particularly on the initial run. In the context of Windows 10, one of the most prevalent Runtime errors encountered is the Microsoft Visual C++ Runtime error. This error tends to surface when attempting to launch Windows Explorer or other applications, triggering an error message similar to the following.

Microsoft Visual C++ Runtime Library Runtime Error! Program: C:\WINDOWS\explorer.exe This application has requested the Runtime to terminate it in an unusual way.

An additional error message that may appear when attempting to initiate a program on a Windows 10 system is as follows-

Runtime Error

Let us understand all the possible reasons behind this Microsoft Visual C++ Runtime Error in Windows 10.

  • Malfunctioning of Microsoft Visual C++ Runtime Library
  • Conflict with other programs and drivers
  • Not enough memory or storage
  • Malware intrusions
  • Corruption in system files
  • Outdated programs or faulty hardware

Manual methods to fix Windows Runtime Error in Windows 10-

To begin, start by verifying the availability of storage space and freeing up any necessary space if it is running low. Additionally, ensure that your antivirus and malware protection software is functioning correctly and review recently installed, potentially unnecessary programs. Furthermore, explore specific solutions that can help you resolve this Windows Runtime Error on a Windows 10 system.

To re-install it, just go to Device Manager on your Windows Control Panel ,

Open Device Manager

then expand Display Adapter section, select your Graphic Card Driver and right-click on it. Then select Uninstall device option.

select your Graphic Card Driver

the uninstallation is completed, install the Graphic Card Driver again. Your problem would be fixed if this was the issue. If not, you can try updating the driver with the latest version.

We have taken faulty Microsoft Visual C++ Runtime Library as a possible reason. So, we can try fixing it by trying two options, i.e. Re-installing Repairing .

To do so, follow the mentioned process-

  • Go to the Control Panel on your system. Click on the Programs option. Find Microsoft Visual C++ program on the list, select it and right-click on it.
  • Then select Uninstall/Repair option on above. Next, choose Repair option.
  • Wait for the process to be finished. Once done, reboot the system. Check if the Runtime Error re-appears. If yes, then try re-installing the program with the fresh version.
  • This time choose Uninstall option and by the time the uninstallation is completing, download a new updated version of Microsoft Visual C++ program. Once the uninstallation is completed, install this fresh version on your system. Now, reboot the system and check if it has worked for you.

Type msconfig

  • Next, switch to the Startup tab and click on Open Task Manager link.

click on Disable option

  • Once all of the services are disabled, restart your Windows 10 system.
  • If error is not coming up again, restart the disabled programs again from the Task Manager. This was the clean boot on your system.

The aforementioned manual processes can be employed to address Runtime Errors in Windows 10. Similarly, certain Windows errors can impact the data stored on system drives, rendering it either lost or inaccessible to users. This issue typically arises due to data corruption caused by malfunctioning programs, virus infiltrations, program conflicts, and other factors. Fortunately, a reliable solution exists to recover lost, inaccessible, or even permanently deleted files from Windows system drives. The Kernel for Windows Data Recovery tool is a versatile recovery utility that thoroughly scans all drives and partitions using three distinct scanning modes, retrieving every bit of data stored within. Users have the option to preview the recovered data and save only the desired files. Consequently, it stands as the optimal professional tool for restore files from corrupted/crashed drive . With this tool, your Windows data remains secure without any compromise to its integrity. Furthermore, it offers compatibility with the latest Windows 11 and all previous versions for data recovery purposes.

A Windows Runtime Error can stem from various factors, but it can be effectively resolved by implementing one of the manual solutions outlined in the blog. Nevertheless, if users or organizations experience data loss or corruption in their Windows system, one can go with the best Windows data recovery tool that is suggested towards the end of the blog.

More Information

  • Free Data Recovery Software
  • Fix Windows 10 File Corruption Issue
  • Recover Ransomware Encrypted Files
  • Recover Deleted Files from Windows 10

Video

One response to “How To Fix Runtime Error in Windows 10?”

Avatar

A great article and I fixed Windows 10 runtime error. Thanks!

Hello! Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

35  +     =  42

Kernel for Windows Data Recovery

how to fix a runtime error

Error Message: Runtime Error 216

When you start Windows, Internet Explorer, or a Windows-based program, you may receive the following error message:

Runtime Error 216 at Address

This issue can occur if your computer is infected with a SubSeven Trojan virus. To determine if your computer is infected with this virus, visit the following Web sites:

http://www.symantec.com/avcenter/venc/data/backdoor.subseven.html http://www.europe.f-secure.com/v-descs/subseven.shtml

To resolve this issue, run an updated antivirus program to remove the virus from your computer. Make sure that all your infected computers are physically disconnected from the Internet and any other networks while you work to resolve this issue. For instructions about how to recover an infected computer, visit the following Carnegie Mellon Web site:

http://www.cert.org/tech_tips/win-UNIX-system_compromise.html Microsoft does not provide software that can detect or remove computer viruses. If you suspect or confirm that your computer is infected with a virus, obtain current antivirus software. For a list of antivirus software manufacturers, click the following article number to see the article in the Microsoft Knowledge Base:

49500 List of Antivirus Software Vendors

More Information

For additional information about distributed denial-of-service attacks and Trojan viruses, visit the following Microsoft Web site:

http://technet.microsoft.com/en-us/library/cc722931.aspx

Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information. For additional information about the "Runtime Error 216" error message, see the following article in the Microsoft Knowledge Base:

189989 Error Message: Runtime Error 216 at 00009275

Facebook

Need more help?

Want more options.

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

how to fix a runtime error

Microsoft 365 subscription benefits

how to fix a runtime error

Microsoft 365 training

how to fix a runtime error

Microsoft security

how to fix a runtime error

Accessibility center

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

how to fix a runtime error

Ask the Microsoft Community

how to fix a runtime error

Microsoft Tech Community

how to fix a runtime error

Windows Insiders

Microsoft 365 Insiders

Was this information helpful?

Thank you for your feedback.

Affiliate links on Android Authority may earn us a commission. Learn more.

What is a runtime error, and how to fix it

Runtime errors can be frustrating and confusing for computer users, especially when they interrupt an otherwise smooth workflow. Whether you’re working on a complex software application, using a spreadsheet program like Microsoft Excel , or browsing the web, you might encounter a runtime error. In this guide, we’ll discuss what runtime errors are, their most common causes, and how you may be able to fix your runtime error.

QUICK ANSWER

Runtime errors are problems that occur when a specific application encounters a problem and crashes. There are many possible ways to fix runtime errors, including restarting your computer, updating or restarting your application, and closing other applications that may be conflicting.

JUMP TO KEY SECTIONS

What is a runtime error?

How to fix a runtime error.

surface laptop 4 back on a table

A runtime error is a type of computer error that occurs while a program is running, hence the term “runtime.” Unlike compile-time errors, which the compiler detects before a program is executed, runtime errors occur while a specific program is running. These errors often lead to a program crashing or other unexpected behavior, frustrating developers and users. There are many different causes of runtime errors, but these are some of the most common:

Common causes of runtime errors

  • Memory leaks: A memory leak occurs when a software program drains your PC’s RAM (random access memory). This can happen when using software that hasn’t been updated, including running on an OS (operating system) that hasn’t been updated to its newest version.
  • Memory issues: Memory-related problems can also lead to runtime errors. This includes issues like attempting to access an area of memory that is not allocated or trying to free memory that has already been freed up.
  • File not found: A runtime error can occur if a program tries to access a file that doesn’t exist or is located in a different directory. This is a common issue in applications relying on external data files. To fix this issue, ensure that whatever file a program requires access to is present and is in the right location.
  • Function calls: Incorrect usage of functions or calling functions with the wrong number or type of arguments can lead to runtime errors. This is particularly relevant in programming languages that have strict type-checking rules.
  • Encoding errors: An encoding error can occur when utilizing software that renders a file (like a video or image) to convert it to a different file format. Because the encoding process is highly resource intensive, an error sometimes occurs when the program uses more power than a system can handle. The user may encounter messages such as “encoding overloaded” or “encoding failed.”

Microsoft Word on Windows laptop stock photo 1

Dealing with runtime errors can be challenging and tedious, but they aren’t insurmountable. Here are some steps you can take to fix runtime errors effectively:

1. Reset your PC

Sometimes, runtime errors can be caused by temporary glitches or conflicts in the operating system or system resources. Something as simple as just restarting your computer can help to clear these issues. It’s a simple step but can often resolve minor runtime errors.

2. Close other programs

Running multiple programs simultaneously can strain your computer’s resources, leading to runtime errors. To free up system resources, close unnecessary applications or background processes. This can help ensure that the program encountering the runtime error has enough resources to operate correctly and is often the solution for the error.

3. Update the application

Software developers regularly release updates to fix bugs and address compatibility issues. Check if an update is available for the application triggering the runtime error. Updating the software to the latest version may resolve the issue, as developers often include bug fixes in their updates.

4. Reinstall the application

If updating the application doesn’t solve the problem, consider reinstalling it. This can help replace any corrupted or missing program files that may be causing the runtime error. Be sure to uninstall the existing version of the software before reinstalling it to ensure a clean installation.

5. Seek outside help

If you cannot resolve the runtime error alone, don’t hesitate to seek assistance. Depending on the nature of the error and the software involved, you can consider the following options:

  • Contact support: Many software developers offer customer support services. Visit the developer’s website or documentation to find contact information and reach out for assistance.
  • Online forums and communities: Online forums and communities dedicated to specific software or programming languages can be valuable resources. You can describe your issue and seek advice from experienced users or developers who may have encountered similar problems.
  • Check event logs: In some cases, the Windows Event Viewer can provide additional information about the error, which may be helpful when seeking assistance from others or troubleshooting further.

Remember that the specific steps to fix a runtime error may vary depending on the software, operating system, and error message you encounter. It’s essential to approach each issue methodically, starting with the simplest solutions and progressing to more complex ones if necessary. Additionally, maintaining a backup of your important data and regularly updating your software can help prevent runtime errors from occurring in the first place.

In conclusion, runtime errors can be a frustrating aspect of computer usage, but they can often be resolved with patience and the right approach. By following these steps and seeking assistance when needed, you can effectively tackle runtime errors and enjoy smoother computing experiences.

  • Filmora Video Editor HOT
  • Filmstock (Effect Store)
  • UniConverter
  • DVD Creator
  • PDFelement Pro HOT
  • • Data Recovery for Computer
  • • Data Recovery for Mac
  • • Video Repair
  • • Photo Repair
  • • Data Repair Online
  • Dr.Fone - Phone Transfer
  • • Phone to Phone Transfer
  • Dr.Fone - Screen Unlock
  • • iPhone Unlock
  • • Android Unlock
  • Dr.Fone - System Repair
  • • iOS System Recovery
  • • iTunes Repair
  • • Android Repair
  • Dr.Fone - Phone Manager
  • • iPhone Transfer & Manager
  • • Android Transfer & Manager
  • Dr.Fone - Data Recovery
  • • iPhone Data Recovery
  • • Android Data Recovery
  • Dr.Fone - Phone Backup
  • • iPhone Data Backup
  • • Android Data Backup
  • Dr.Fone - Data Eraser
  • • iPhone Data Eraser
  • • Android Data Eraser
  • MobileTrans
  • • Phone Transfer
  • • WhatsApp Transfer
  • Dr.Fone - WhatsApp Transfer
  • • WhatsApp Transfer & Backup
  • Recovery Toolbox for Exchange Server
  • • Recover Corrupted EDB Data
  • Teorex Inpaint HOT
  • Teorex PhotoScissors
  • Teorex iResizer
  • Macphun Noiseless
  • Macphun Snapselect
  • Teorex PhotoStitcher
  • Macphun Focus
  • Video Editing Software
  • • Best Youtube Video Editor
  • • Best Video Merger
  • • Best Video Editor for Beginner
  • • Best Video Editor for Mac
  • Video Editing Tips
  • • How to Speed Up Your Video
  • • How to Crop Your Video
  • • How to Cut Your Video
  • • How to Increase Video Volume
  • Creative Editing Tips
  • • Reaction Video
  • • Face Changer
  • • Zoom into Eye Effect
  • • Makeup Tutorial
  • Creative Topics
  • • How to Become a YouTuber
  • • Game Video Editing Tips
  • • Travel Video Editing Tips
  • • Sports Video Editing Tips
  • Download Buy Now Download Buy Now Download Buy Now

how to fix a runtime error

4 Ways on How to Fix Runtime Error on Windows

how to fix a runtime error

While working in the Windows environment, you will encounter many errors and the Windows runtime error is one of them. This error is commonly encountered when you try to run a program and this error message is shown. The Windows runtime error occurs when a program or application fails to execute properly due to software or hardware errors. But as common these errors are, the solution to them is as easy. Here in this article, you can find solutions on how to fix runtime error in windows. There can be different types of runtime error and here we have provided the common solutions to these errors.

Part 1. How to Fix Runtime Error r6034 on Windows

Part 2. how to fix runtime error r6002 on windows, part 3. how to fix runtime error r6025 on windows.

  • Part 4. The Common Way to Fix Runtime Error

Part 5. Common Reasons for Runtime Error on Windows Explorer

The windows runtime error r6034 is the most commonly encountered runtime error. The error is raised when the compiler couldn’t build the application that you want to run. The causes may be many for this error. The most common reasons are missing or corrupted system files, viruses and malware on the computer, device driver problems, and others. Generally, the error is caused by faulty programs and registries that interfere with the running of other programs. The best solution is to close the faulty program. But it can get really tricky to know which program is causing errors and them how to fix runtime error. You can clean boot the PC to solve the problem. Follow the steps to solve runtime error r60344 on Windows with Safe mode.

Step 1: After the PC has booted up, open Start and type "msconfig" in the search box and press "Enter".

Step 2: Now the System Configuration dialog box will appear. In the "General" Tab, under the "Selective Startup" option, uncheck the "Load Startup items".

Step 3: Now in the "Services" tab, check the "Hide all Microsoft Services" checkbox.

Step 4: Then click on the "Disable All" button and press OK.

how to fix runtime error

Step 5: Finally Restart the PC and the runtime error r6034 will be fixed.

By clean booting, you will disable all startup services and processes that may be interfering with your program and causing the error.

The Runtime error r6002 is another most common type of runtime error. When a program links to a non-existent program, the compiler will not be able to complete the program building and it will display the error. The runtime error r6002 floating point support not loaded can also be encountered due to corrupt runtime component in Visual C++, registry error and the last reason may be viruses or malware. You can uninstall the Runtime components of Visual C++ library and reinstall it to see if the error still persists. You can follow the steps if you want to know how to fix runtime error r6002 on Windows by reinstalling the runtime components of Microsoft Visual C++ library.

Step 1: Click on Start and then "Control Panel".

Step 2: Then in control panel, under the "Programs", click on "Uninstall a program" option.

fix runtime error r6002

Step 3: Select the Microsoft Visual C++ packages installed on your computer and uninstall them.

fix runtime error r6002

Step 4: Restart the computer and let the changes take effect.

Step 5: After the system is booted up, go to the Microsoft website to download the latest version of Microsoft Visual C++ package.

Step 6: Install the package and try to run the program after it. The error should be solved.

The Windows runtime error r6025 is encountered when a program makes an invalid function call to a virtual member function. Then the compiler will report an error during the building of that program. This error can also be encountered if you haven't installed the program correctly on some files were corrupted during installation. Want to know how to fix runtime error r6025 on Windows? Follow the steps given below.

Step 1: Completely close the program by ending the program processes. Press Alt +Ctrl + Del to open the Task manager.

Step 2: Under the "Processes" tab in task manager, find the program process and click End Process. Close the task manager.

fix runtime error r6025

Step 3: Now go to Uninstalling a Program window by clicking on Start > Control Panel > Uninstall the Program. Select the program showing error and click "Uninstall".

how to fix runtime error

Step 4: After uninstalling, also delete the program files of that software or program. Just click on Start and after typing "cleanmgr" in the search box, Press Enter.

how to fix runtime error r6025

Step 5: Choose the drive where the program was installed and click OK. Now check all the options under the "Files to delete" and click OK.

fix runtime error r6025

Step 6: After deleting the files, restart the computer.

Step 7: Now reinstall the program and the runtime error R6025 shouldn't pop up again.

Part 4. The Common Way to Fix Runtime Error (Microsoft Visual C++)

Runtime errors are program errors that are encountered during the execution of the program. The reason may be many for these errors like the program calling invalid functions, incorrect source code, incomplete installation, virus attacks, missing files, corrupted registries etc. Runtime errors end the program abruptly which causes a lot of inconvenience to the users. You can solve the error by booting the PC in the safe mode. Booting the PC in safe mode will only load the minimal required files of the operating system and other unnecessary won't be executed on startup. Follow the steps below to boot the PC in safe mode to fix runtime error.

Step 1: Restart the computer and repeatedly press F8 during boot up before the Windows logo appears.

Step 2: It will show the "Advanced Boot Options" screen. Use the keyboard "up" and "down" arrow keys to highlight the safe mode option.

Step 3: Select Safe mode from it and press Enter.

fix runtime error

Step 4: Wait for a while for PC to boot up in the safe mode.

Booting the PC in Safe mode solves most of the errors including runtime errors due to startup services or registry.

• Registry Errors

Registry errors can cause malfunction while running the program and this can result in runtime errors. Windows make a log of all the drivers and programs installed on the computer. The corrupted registry may make it difficult to retrieve a file for execution.

• Incomplete Installation

Incomplete installation of a program can also cause a runtime error. Some files for the execution of the program or application may be missing because the installation was interrupted. This problem can be solved by completely uninstalling the program and reinstalling it.

• Missing Files

When files required for executing a program are missing, deleted or misplaced somewhere, the compiler won’t be able to build the program. The result will be the runtime error.

how to fix runtime error

• Outdated Drivers

Outdated drivers are known to cause many problems and runtime errors are one of them. So make sure that your device drivers are always updated to avoid any problems.

how to fix runtime error

• Virus Attack

Viruses and malware often interfere with the working of various programs and can corrupt the files needed to run the program. They can also change the links to a file and make them unreachable for the compiler. To solve the problem, it is advisable to keep your PC secure from viruses with a help of Antivirus software.

how to fix runtime error

You Might Also Like

how to fix a runtime error

[Ultimate Guide] How to Deep Fry a Meme

how to fix a runtime error

[Tutorial] How to Make a Meme with the Best Meme Maker

how to fix a runtime error

9 Best Meme Websites for Searching Funny Memes in 2022

  • Office Document Solutions
  • Photo/Video/Audio/Camera Solutions
  • Email-Related Solutions
  • Windows Computer Solutions
  • Mac Computer Solutions
  • Linux Solutions
  • Hard Drive Solutions
  • SD Card Solutions
  • USB Drive Solutions
  • NAS Disk Solutions
  • Data Backup Solutions
  • File Format
  • File System
  • Storage Media
  • Disk Parition
  • DOWNLOAD DOWNLOAD
  • Buy Now Buy Now

recoverit

What Is a Runtime Error and How to Fix

Khalid Abdullahi

Khalid Abdullahi

how to fix runtime errors

When you try to launch a software and a runtime error occurs, it can be confusing knowing what to do next. Various computer issues can cause runtime errors. Although there are times when closing and reopening the app eliminates the error, it doesn’t go away sometimes. Runtime errors are notorious for disrupting workflows and can get in the way of a productive day.

In this article, we’ll walk you through what a Runtime Error is and the various types of runtime errors available. We’ll also provide the best solutions to fix runtime errors when they occur.

In this article

Part 1. what is a runtime error.

A runtime error occurs when an application you’re using produces a wrong output or crashes. Sometimes, these errors prevent you from using the program or your PC altogether. Runtime errors differ from errors that occur when the program already launches; they occur when you try to launch the program.

There are cases when all you need to do is refresh your PC or the application, and the runtime error disappears. However, there are occasions when you need to take an extra step to fix the error. For example, when runtime errors in programming occur, a window appears displaying the error code and more information about the affected program. In addition, before a runtime error occurs on your PC, it gives you signs like your PC’s performance is slowing down.

Part 2. Examples of Runtime Errors

There are runtime errors in programming and runtime errors in Internet explorer, which differ. Some examples of runtime errors in programming include:

  • AppModel runtime errors 57, 490, 87: this type of error appears whenever a Windows 10 app is updated, installed, or reinstalled through the Microsoft Store.

runtime error in programming

  • NVIDIA GeForce Experience C++ runtime error: This error usually occurs when you try to check for Nvidia graphic card updates.

c++ runtime error

  • Microsoft Visual C++ runtime library: This common error pops up every time you turn the computer on.

microsoft visual runtime library error

  • Runtime error 1004 in Excel: This error usually interrupts Microsoft Excel users and is usually related to Microsoft Visual Basic.
  • .Net runtime error 1026: This comes with an error message about an unhandled exception. When this error appears, the application crashes or refuses to start when you want to run it.

runtime error in programming

  • Atibtmon.exe runtime error: This appears when you try to unplug the power cord from the Windows 10 device.

runtime error due to unplugging power cord

Internet Explorer runtime errors are quite different; it comes with a line number and then states the error. An example is:

  • Error: ‘something’ is undefined

runtime error in internet explorer

Part 3. Causes for Runtime Errors

If you’re wondering what causes runtime errors, there are many reasons why they occur. The reason for the error usually depends on the application and the action you’re trying to take. Runtime errors are usually associated with software or hardware that prevents programs and applications from running correctly.

Runtime errors in Internet Explorer occur when the website utilizes an HTML code incompatible with the web browser functionality. However, there are various reasons for runtime errors in programming. Depending on the situation, below are some reasons why a runtime error might occur.

  • The developers didn’t rectify a programming glitch during the application development. Unfortunately, this means that there’s a bug in the software.
  • You’re trying to run two incompatible software programs.
  • An incomplete installation can also trigger the runtime error.
  • Memory or another system resource isn’t available.
  • You inputted a foreign character into a text field or performed an action that the PC didn’t support.

Often, when this error occurs, it appears as a small window that indicates that the program is affected. Sometimes, the prompt also suggests contacting an administrator or the support team.

Part 4. Types of Runtime Errors

To fully understand what a runtime error entails, it’s essential to look closely at the different types of runtime errors. Below we’ll explain them in detail; let’s take a look.

1. Logic Error

No matter how good a developer is, the occasional error still occurs. For example, a logic error usually happens when the programmer enters the wrong statement into the application’s source code. Sometimes, developers make the mistake of leaving logical values to revert to true, and this type of error falls under that category.

2. Memory Leaks

A runtime error could pop up when a program is draining your PC’s Random Access Memory (RAM). Most times, this type of error comes from unpatched software, like when you fail to update the operating system to the new version.

3. Division by Zero Error

The computer performs a lot of math when it is processing data. This means that errors can appear when it is performing the simplest arithmetic. For example, division by Zero error is usually associated with Excel Workbooks. It occurs when your computer performs calculations and tries to divide a number by zero.

Additionally, when formula inputs in a spreadsheet are left blank, it could result in this runtime errors. Therefore, you need to format the cell formulas in a specific manner to get the right result.

4. Undefined Object Error

This error occurs when the program tries to call a function for a PHP or JavaScript object that doesn’t have a value. The error also occurs for deeply nested objects. To put it in simpler terms, the code cannot find a property or read it because it is either buried many levels deep within the code or doesn’t exist.

5. Input/Output Device Error

Input/Output device error usually occurs when there’s an issue with your PC’s read/write function. There are various reasons for this error, including outdated drivers, faulty USB ports, device malfunction, and OS incompatibility. When this runtime error occurs, users get a prompt that informs them that the device isn’t accessible, making it difficult to encode or transfer files into it.

6. Encoding Error

Another top runtime error that commonly occurs is an encoding error. It frequently happens when you’re rending a file. An example is when you’re trying to convert a video file to a usable or accessible file format. This error occurs due to the nature of the encoding process and the number of resources it requires.

7. The Segmentation Fault Error

You’ll find segmentation fault errors among the most common types of runtime errors. This is because there are specific rules you must follow when accessing memory and trying to write into it. When you break these rules, then it will result in a segmentation fault error. This runtime error occurs when a program tries to write a read-only memory or access a memory it isn’t allowed to access.

8. The Non-Zero Exit Status Error

Every software consists of many lines of code. Each line is essential to ensure the software functions properly and continues to run smoothly. However, there are times when a line doesn’t work the way it is programmed to, resulting in an error. Such an error is known as a non-zero exit status error. Every line of code features an exit status, a number that tells whether it runs successfully. For example, 0 means the computer ran the line successfully, while any number between 1 and 255 means failed.

Part 5. How to Fix the Runtime Errors in Internet Explorer

fix runtime errors in internet explorer

You may continue to receive popups preventing you from accessing a website or carrying out other activities on the internet. The solution to runtime errors in Internet Explorer depends on the type of error you receive. Follow the steps outlined below to solve common runtime errors in Internet Explorer.

To reset your browser, follow the steps provided below:

Step 1. First, close all programs and then launch Internet Explorer.

Step 2. Now, tap the Gear icon placed in the upper right corner of the browser.

Step 3. From the options provided, click Internet options to proceed.

Step 4. In the dialog box that pops up, click the Advanced tab, and then select the Reset button.

reset to fix runtime errors

Step 5. A dialog box would appear asking you to confirm this option; click Reset to proceed.

select reset to proceed

Step 6. When Internet Explorer completes this task, hit the Close button and restart your PC to save the new changes.

close to save new settings

For some people, resetting Internet Explorer fixes the runtime issue. However, there are times when the runtime error persists. In such a case, follow the simple steps below to disable script debugging and error notifications.

Step 1. Start by closing all open windows.

Step 2. Next, launch the browser and select the ‘Gear icon’ conveniently located at the upper right corner of the screen.

Step 3. Choose Internet Options from the options that appear.

Step 4. When the dialog box appears, select the Advanced tab to proceed.

Step 5. Scroll down the list of settings and tick the boxes next to the labels Disable Script Debugging (other) and ‘Disable Script Debugging (Internet Explorer).

fix runtime errors on internet explorer

Step 6. Now scroll down and untick the box next to the label Display a Notification about every Script Error.

click apply after settings

Step 7. Click the Apply button to save your new changes, then close Internet Explorer and Restart your PC.

To check whether this fixes the problem, open the website that caused the error again. The runtime error is gone if the website opens easily and without errors. You might receive a notification about an error in the status bar, but you can ignore it.

Part 6. How to Fix the Runtime Errors in Programming

Most times, what causes runtime errors in programming are bugs that the programmers knew about but found difficult to fix. Sometimes, the problems are memory leaks or the application requires some system resources to run correctly. Below are some solutions you can explore to fix the runtime errors in programming.

Fix 1: Restart Your Computer

This technique is quite common because of how effective it is. Most times, simply restarting your computer will fix any error, including runtime errors. When your PC suddenly feels like running very slowly, this solution would work to speed things up.

If you’re experiencing runtime errors due to memory-related issues, restarting your computer closes down everything currently running on your PC. Additionally, it will free up the used system resources for the program causing the error.

Fix 2: Update the Application or Program

Sometimes, runtime errors pop up from an error in the program or a bug in the version you’re using. That’s why the best fix is to update it or manually download the latest version. Chances are that the bug has been patched in the new release, and you have to update your application. An example is the NVIDIA GeForce Experience; when you update the NVIDIA program, you’ll no longer experience a runtime error using the software.

Fix 3: Close Other Applications or Program

Sometimes, runtime errors occur when two incompatible programs are running. Due to this, the other program conflicts with the one you want to run. In such a case, the other software utilizes too many system resources, leaving very little for the application you want to launch. To fix this runtime error in programming, close applications you don’t need and then try opening the program with the runtime error again.

Fix 4: Reinstall the Application

The chances are that the software is corrupt and needs to be reinstalled. Another reason you may be experiencing runtime errors is due to incomplete installation. The update procedure might have resulted in this error, and in such a case, you have to delete the program to reinstall it from scratch. Ensure you save important files before you uninstall your app.

Fix 5: Install the Latest Microsoft Visual C++ Redistribution Package

Some people experience runtime errors in programming after updates to Windows 10/11. Maybe the popup window showing the error message appears every time you turn on your PC and returns when trying to shut it down. Most times, the problem occurs due to a software program or maybe the Visual C++ libraries’ runtime tools being missing.

In such a case, you must install the latest Microsoft Visual C++ . Note that you have to uninstall the package already on your PC before you can proceed to download the latest Microsoft Visual C++ Redistribution package.

Fix 6: Run the Application in Safe Mode

Safe mode is a unique diagnostic mode in the Windows Operating System that’s useful for solving software and hardware issues. Any program you run in safe mode only uses the bare minimum to ensure your PC works excellently. This mode is useful and helps fix most operating system errors. When a runtime error appears, you should try running the application in safe mode. Follow the steps below to run the application in safe mode.

Step 1: Right-click the start button and then click Settings from the menu that appears.

Step 2: Now, navigate through the windows that pop up to Update & Security. On this tab, select Recovery and then select Restart now to proceed.

Step 3: This will redirect you to the Windows Recovery screen. Click Troubleshoot to begin and select Advanced options from the options provided.

select startup settings to start safe mode

Step 4: Now, choose Startup Settings and hit Restart to proceed.

restart pc to boot safe mode

Step 5: This would result in Windows restarting into the Startup Settings page. Enter the safe mode by hitting the F4, F5, or F6 buttons.

start pc in safe mode

Step 6: Once your PC opens in safe mode, try rerunning the application to see if that eliminates the runtime error.

Fix 7: Use SFC Scannow to Repair Corrupted Windows Files

The SFC Command is usually executed in a Command Prompt Window and can help you fix the runtime error. It is used to scan and repair corrupted files. To eliminate the runtime error caused by a malware attack, run the SFC Command to Repair System Files .

Fix 8: Run System Error

Another way you can fix runtime errors in programming is by running system restore. This feature works by returning your computer to its previous state. This solution is the best option if the runtime error results from a corrupt Windows Registry. Once you run System Restore , try relaunching the software to see if it fixes the problem.

Fix 9: Update Your Drivers

update drivers to fix runtime errors

Sometimes, your Windows, motherboard, or graphic drivers are the causes of runtime errors in your PC. Therefore, you should always try to have the latest drivers updated on your PC. You can usually download the latest updates from the manufacturer’s website or use a free driver updater to get the job done.

Fix 10: Scan for Malware

This isn’t a rare case, as there are times when malware appears in an application, resulting in a runtime error. In addition, malware and computer viruses tend to tamper with your PC memory or system settings. If you have an anti-virus on your PC, ensure it is updated to the recent version. Additionally, scanning your PC for malware to ensure the software isn’t infected is always a good idea. If you find corrupt software, disable it immediately.

Fix 11: Reinstall Windows

If all the fixes shared in this guide don’t work, then you can resort to reinstalling Windows. This fix is best if focusing on a specific program doesn’t eliminate the runtime error. If the error also interferes with how Windows works as a whole, then resetting is a good option. Note that while this might fix the issue, it could result in losing important data. Therefore, learn how to reinstall Windows without losing data .

What is the most common cause of runtime errors?

A memory leak is usually the most common cause of runtime errors on your PC. This occurs when a program starts to incorrectly manage the memory allocation, meaning it consumes more RAM without freeing up any.

Why am I getting a runtime error when opening a PDF in Internet Explorer?

There are varying reasons why this could happen. It is usually a C++ runtime error when you utilize Adobe products. Most times, it occurs because you lose a preferences file created by Adobe, causing you to lose your custom settings.

What do I do if I get a runtime error when uninstalling software?

The best solution is to try running a clean boot. You can also try running the PC in safe mode to see if this fixes the issue.

Although you can usually skip runtime errors, you shouldn’t ignore them as they can pose a bigger problem in the future. Runtime errors tend to affect the overall functioning of the PC and applications. This article provides answers on what they are and the possible causes of runtime errors. The solutions shared in this guide will also help you fix the issue in no time.

For Windows XP/Vista/7/8/10/11

For macOS X 10.10 or later

You May Also Like

How to recover files from a dead laptop's hdd or ssd in a few simple ways, recuva free data recovery review 2023, easy recovery essentials free for windows, how to convert raw file system to ntfs in windows, partition repair: how to repair a damaged partition, how to fix “the parameter is incorrect” error on external hard drive, how to recover deleted temp files.

contact

  • DSA for Beginners
  • DSA Tutorial
  • Data Structures
  • Linked List
  • Dynamic Programming
  • Binary Tree
  • Binary Search Tree
  • Divide & Conquer
  • Mathematical
  • Backtracking
  • Branch and Bound
  • Pattern Searching

how to fix a runtime error

  • Explore Our Geeks Community
  • Tips for testing code in Competitive programming
  • Check whether two convex regular polygon have same center or not
  • Find all divisors of N2 using N
  • Length of the longest subsegment which is UpDown after inserting atmost one integer
  • Sum of minimum value of x and y satisfying the equation ax + by = c
  • Difference Between sum of degrees of odd and even degree nodes in an Undirected Graph
  • Difference Between one-dimensional and two-dimensional array
  • Most important type of Algorithms
  • What’s difference between Linux and Android ?
  • Input/Output from external file in C/C++, Java and Python for Competitive Programming
  • Most Popular Weekly Coding Contest Platforms
  • Count triplets with specific property
  • What's difference between MMU and MPU?
  • Interactive Problems in Competitive Programming | Set 2
  • Find the minimum time after which one can exchange notes
  • Importance of Testing In Competitive Programming
  • What to do at the time of Wrong Answer (WA)?
  • What's difference between Microcontroller (µC) and Microprocessor (µP)?
  • How An Online Judge Works And How To Avoid Time Limit Exceeded Problem?

Runtime Errors

Runtime errors :.

  • A runtime error in a program is an error that occurs while the program is running after being successfully compiled.
  • Runtime errors are commonly called referred to as “bugs” and are often found during the debugging process before the software is released.
  • When runtime errors occur after a program has been distributed to the public, developers often release patches, or small updates designed to fix the errors.
  • Anyone can find the list of issues that they might face if they are a beginner in this article .
  • While solving problems on online platforms, many run time errors can be faced, which are not clearly specified in the message that comes with them. There are a variety of runtime errors that occur such as logical errors , Input/Output errors , undefined object errors , division by zero errors , and many more.

Types of Runtime Errors :

  • Division by Zero.
  • Modulo Operation by Zero.
  • Integer Overflow.

Below is the program to illustrate the SIGFPE error:

how to fix a runtime error

  • Infinite Recursion or if you run out of stack memory.
  • Negative array index is accessed.
  • ArrayIndexOutOfBounds Exception.
  • StringIndexOutOfBounds Exception.

Below is the program to illustrate the NZEC error:

how to fix a runtime error

  • Accessing an array out of bounds.
  • Dereferencing NULL pointers.
  • Dereferencing freed memory.
  • Dereferencing uninitialized pointers.
  • Incorrect use of the “&” (address of) and “*” (dereferencing) operators.
  • Improper formatting specifiers in printf and scanf statements.
  • Stack overflow.
  • Writing to read-only memory.

Below is the program to illustrate the SIGSEGV error:

how to fix a runtime error

Ways to avoid Runtime Errors :

  • Avoid using variables that have not been initialized. These may be set to 0 on your system but not on the coding platform.
  • Check every single occurrence of an array element and ensure that it is not out of bounds.
  • Avoid declaring too much memory. Check for the memory limit specified in the question.
  • Avoid declaring too much Stack Memory . Large arrays should be declared globally outside the function.
  • Use return as the end statement.
  • Avoid referencing free memory or null pointers .
  • DSA in Java
  • DSA in Python
  • DSA in JavaScript

Please Login to comment...

Similar read thumbnail

  • sumitlovanshi
  • Web Technologies - Difference Between
  • Competitive Programming
  • Difference Between
  • Program Output

Please write us at contrib[email protected] to report any issue with the above content

Improve your Coding Skills with Practice

 alt=

  • Digital Marketing
  • Tips&Tricks
  • Privacy Policy
  • Terms of Use

how to fix a runtime error

How to Fix Runtime Error on Windows (Step by Step Guide) 2023

Are you facing the problem runtime error? Want to learn how to fix runtime error on windows? If yes, then well, we will share the best method for how to fix this problem easily.

While performing certain tasks in the Windows environment, the user may encounter errors. Like Windows Runtime Error. They are quite disturbing for users who are working on an important task.

They mainly occur when certain programs do not run due to a hardware or software error.

How to Easily Fix Runtime Error On Windows

You can get rid of such errors by following simple steps. In this article, you will find a common solution for different types.

Before going any further, we will give you the necessary information about Runtime Error.

Table of Contents

What is Runtime Error?

A runtime error is a problem that occurs when the user runs or opens the software. This error is different because it appears not when the program is running, but when the program is about to be launched.

Usually, this error appears with a small popup window containing details and code that can be used for troubleshooting.

In some cases, the appearance of this error also causes system performance to seem to slow down . Before you handle it yourself, it is highly recommended to ask the IT team for help.

What are the Causes of Runtime Error?

As we saw above, they are due to hardware or software problems.

In most cases, the reason can be – lack of storage space, operation of incompatible programs, viruses, presence of malware, etc.

A dialog box appears on the screen stating that there is a runtime error, but it does not provide enough information to clear it.

It may cause a loss of data or cause an irreparable error in your system.

How to Simply Fix the “Runtime Error” on Windows

Here we will share the best and simple methods to fix the runtime error on windows.

1. Turn off the TSR Program

Runtime errors can occur due to conflicts with third-party programs and TSR.

TSR stands for Terminate and Stay Resident , which is a set of programs that are loaded into memory at startup and will become active when needed.

When there is a conflict between a third-party application and TSR with Microsoft Visual C ++ Runtime Library, a Runtime error message appears.

To fix this, we should try turning off the TSR and other programs loaded at startup and see which causes the error to appear.

Follow these steps:

  • Open task manager (CTRL + Shift + Esc)
  • Go to the Startup tab
  • Disable all TSRs and startup programs
  • Restart the computer
  • After the computer turns back on, try to check if the runtime error is gone.
  • If the runtime error has disappeared, then you can reactivate the TSR and the startup program that was disabled one by one.
  • Check which TSR or startup program caused the error.
  • Permanently disable the program.

2. Clean Boot

The best solution to fix Runtime errors in Windows 10, Windows 8, and Windows 7 is to enter clean boot mode. This mode is a state where Windows runs only with the basic services it needs.

The way to clean boot in Windows can be by entering Safe Mode or manually. To enter the safe mode you can see how here:

Especially to solve Runtime errors, we have to enter clean boot manually. Follow these steps:

1. Login with an administrator account.

2. Press Windows key + R> type msconfig> OK.

3. After entering the System Configuration window click on the Services tab> check the Hide all Microsoft services option> click Disable all> OK.

how to fix runtime error

4. Open task manager (CTRL + Shift + Esc)> click on the Startup tab> Disable all startup programs one by one.

Clean Boot

5. Restart the computer.

After the computer starts , we have to enter the clean boot. See if the Runtime error is gone. If it’s gone, it means that one of the services or startups we turned off earlier was the cause.

3. Basic Steps to Solve Them

This section includes basic and easy steps to solve r6025. It occurs when an invalid function is performed by a program on a virtual member function.

The compiler then generates an error while building that particular program.

  • Start with the combination “Ctrl + Alt + Del” and go to your task manager to check for running programs.
  • Press the ” Processes ” tab to get the list sorted by ” Username “.
  • These problems are caused by the running program.
  • You can use the “ End task ” option and end all programs until you find the one that produces the error.
  • You should check for the runtime error after closing each program.
  • Once you have identified the program, go to Control Panel and uninstall that program and its files.
  • Then you can reinstall the latest version of that software or program.

4. Fix r6002 on Windows

This is a frequently observed type. The cause is the program binding to a non-existent program.

At this time, the compiler cannot run the program and displays an error on the screen.

To solve it, follow the steps mentioned below:

  • Open it ” Control Panel “.
  • In the ” Programs ” section, select the option ” Uninstall a program “.
  • Click on Installed Microsoft Visual C ++ Packages.
  • Uninstall these packages.
  • After uninstalling, restart your system.
  • When the system boots, go to the Microsoft website, and from there you can download Visual C ++ packages.
  • Install the packages and verify that it needs to be removed.

5. Steps to Fix on Windows r6034

The reason can be corrupted files, device driver problems, missing files, viruses, etc.

In this case, the compiler is unable to run the program because of bad files that interfere with the running program.

It is very tricky to find the particular error that created the program.

  • Start your system correctly.
  • After startup, open the “ Start “ menu.
  • In the search box, type ” MSConfig ” and press the ” Enter ” key.
  • A dialog box will appear on the screen named System Configuration.
  • In the “ General ” tab, click on the “ Selective startup ” option.
  • Uncheck the option ” Load startup items “.
  • Check the ” Hide all Microsoft services ” box under the ” Services ” tab.
  • Click the “ Disable All ” button.
  • After clicking “ OK ” restart your system.

6. The Most Common Way to Fix these Problems: ( Microsoft Visual C ++ )

They usually terminate the program and cause a lot of problems for users. You can try to resolve them by starting your system in safe mode.

When you start the system in safe mode, it opens only the files necessary for the full functioning of the operating system, putting aside other unnecessary files during boot.

Follow the steps below on how to start your system in Safe Mode:

  • Restart your PC and keep pressing the F8 key while booting.
  • A new window called ” Advanced Boot Options ” will appear on the screen. Use the arrow keys on the keyboard to enter the safe mode.
  • Select the “Safe” mode and press the ” Enter ” key.
  • Wait for the system to boot into safe mode.

7. Error Resolution with Windows Explorer

Registry errors:

They tend to create problems within the system while the program is running, and furthermore can lead to “Runtime Error”

Windows keeps a log of all necessary drivers, and a corrupt registry file can make it difficult to run a program.

Missing files:

When files required for execution are missing, moved, or deleted, the program cannot be compiled and this will result in “Runtime Error”.

Obsolete drivers:

Make sure your drivers are up to date in order to avoid any issues while performing any task or program.

Hope you can now fix the Windows runtime error and find out the reason for its occurrence.

But it is suggested to perform disk fragmentation at regular intervals to avoid such errors. This will keep your system running efficiently and quickly.

Frequently Asked Questions on Runtime Error

Now that I have explained what “Runtime Error” is, the reasons for this error and how to fix it, let me also answer some of the related questions that are often asked by a lot of the users.

Q: What is Microsoft Visual C ++ “Runtime Error”?

A: They can occur when software installed on your computer conflicts with one or more components of Microsoft Windows.

Q: How can I fix one, Visual C ++?

A: Follow the steps:

  • Close all open programs;
  • Press Windows key + R to open the Run command;
  • Enter “ appwiz.cpl ” ( Add / Remove Programs ) and press OK ;
  • Select all installed Microsoft Visual C ++ programs;
  • Click “ Uninstall ” and follow the on-screen instructions;
  • Download and install a new copy of Microsoft Visual C ++ from the Microsoft website;

Q: What does “Runtime Error ” mean on a website?

A: It prevents Internet Explorer from working properly. When a website uses HTML code that is not compatible with the functionality of the web browser, this error appears in Internet Explorer

Once you understand what it is or what it means, it is advisable to do regular disk defragmentation on your PC, besides following the tips given above on how to fix this error.

Every Windows PC comes equipped with a defragmentation utility that reorganizes the data on your hard drive and collects fragmented files.

This will not only prevent Windows problems to a large extent but also make your computer run faster and more efficiently.

RELATED ARTICLES MORE FROM AUTHOR

How to fix chrome’s err_connection_closed error [2024], missing operating system : how to easily fix the error [2024], how to fix the error 0x800701e3 on windows [2024], leave a reply cancel reply.

Save my name, email, and website in this browser for the next time I comment.

Recent Posts

Avast premier activation code and license key [2024], 10+ best free plagiarism checker tools in 2024 [updated], how to change name on clash of clans [2024], stay connected with us, best software, best free download manager for pc [windows & mac], 15+ best video quality enhancer (online & software) [2023], best free audio editing software for windows and mac, popular posts, latest free steam accounts & passwords [2024], popular category.

  • Tips&Tricks 401
  • Computer 152
  • Digital Marketing 49
  • Software 19

Logo

On this website, we try our best to solve people's queries related to technology and review tech gadgets and share the tech-related tips&tricks and more.

Contact Us: [email protected]

© 2023 All Rights Reserved By TachMaina Powered By Angelina

MiniTool

How to Fix the Runtime Error 76 – Path Not Found in Windows?

What is the runtime error 76? People are concerned about this error because it may stop you from using some Microsoft Office utilities. According to what was reported, the runtime error 76 most likely happens in Excel. This post on MiniTool will teach you how to fix it and access your data.

Runtime Error 76

Runtime error 76 is a common error message that can happen on different applications. Mostly, users will be stuck in this error when they attempt to access some program but the program cannot identify the correct location for writing its data, thus the program crashes or freezes.

Recently, people reported that their Excel or other Microsoft Office apps run into this path not found error 76. To fix that, you can try these easy tips first.

1. Make sure the file is not in use by other programs.

2. The file or directory doesn’t hold special characters.

3. Reduce the character count in the file path.

4. Check for necessary permissions to access the file/folder.

Bonus Tip: Back up and Recover Your Data

Runtime error can happen to stop you from accessing programs/files, or editing or deleting. If you find your file data gets lost because of the error, you can try MiniTool Power Data Recovery . This tool can recover any deleted/lost files under various data loss situations. It is worth trying.

MiniTool Power Data Recovery Trial Click to Download 100% Clean & Safe

However, not all lost data can be immediately saved. If you want to make sure your important data can be protected, you’d better prepare a backup plan for your files regularly. MiniTool ShadowMaker is another tool that can surprise you.

MiniTool ShadowMaker is a free backup software , that allows you to backup files , folders, partitions, disks, and your system. You can perform a scheduled task with different types of backup to save your resources and time. Try this program and you can get a 30-day free trial version.

MiniTool ShadowMaker Trial Click to Download 100% Clean & Safe

Fix: Runtime Error 76

Fix 1: run the program in compatibility mode.

When you find your program encountered the runtime error 76, you can try to run it in compatibility mode and see if the issue can be resolved.

Step 1: Locate and right-click on the program launcher and choose Properties .

Step 2: In the Compatibility tab, check the box next to Run this program in compatibility mode for: and choose an older Windows version that the program was designed for from the drop-down menu.

Step 3: Click Apply > OK and check if the error 76 persists.

Fix 2: Use a Registry Hack

You can get rid of the runtime error 76 by modifying the paths that are incorrectly set. But before you do that, you’d better back up the registry or prepare a restore point because editing the registry can be risky.

Step 1: Open Run by pressing Win + R and type regedit to enter.

Step 2: Then please follow to locate this path.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

Step 3: From the right panel, right-click on the space to choose New > DWORD (32-bit) and name it EnableLinkedConnections .

Step 4: Double-click on the key, change its Value data to 1 , and click OK to save it.

click OK

Then you can close the window to restart your PC.

Fix 3: Install the Latest Visual C++ Redistributables

Microsoft Visual C++ Redistributable packages can help some software to run well and if it is outdated or missing, the program may fail to initiate and run into the runtime error 76.

Step 1: Open Control Panel and click Uninstall a program under Programs . Then you can check the version of installed Visual C++.

check your Visual C++ version

Step 2: Now, go to Microsoft’s official website to check and download the Visual C++ Redistributable package according to your system’s architecture. Follow the on-screen prompts to finish the installation.

Fix 4: Reinstall the Program

If the last methods can’t resolve your issue, you directly uninstall and then reinstall the problematic program.

Step 1: Open Control Panel and click Uninstall a program under Programs .

Step 2: Right-click on the problematic program and choose Uninstall .

Then you can go to the official website to re-download and install the program.

Bottom Line:

This post can help you to resolve the runtime error 76 and you can follow the above methods to troubleshoot your issue. Hope this article is helpful.

About The Author

Anna

Position: Columnist

TL Logo New

How to Fix “RuntimeError: CUDA out of Memory”?

  • The CUDA architecture in PyTorch leverages the power of GPUs to speed up computations by using the parallel computing power of NVIDIA.
  • Deep learning models are trained using GPU memory, which stores model parameters as well as intermediate activations.
  • It’s really frustrating to get errors such as RuntimeError: CUDA out of Memory. Fortunately, we have some fixes to make this error go away. 

How to Fix “RuntimeError: CUDA out of Memory”?

In the research and development community, PyTorch has become a popular deep-learning framework. In the case of large models or datasets, users may encounter the frustrating “RuntimeError: CUDA out of Memory” error.

This error indicates that the GPU’s memory has been exhausted, preventing deep learning from being completed.

In this article, we will tell you about some of the needed steps that may help you resolve the RuntimeError: CUDA out of Memory. Thus, without any further ado, let’s get started with the guide.

Content Table

What is the CUDA Out of Memory Issue?

What is the CUDA Out of Memory Issue?

It is an integrated hardware and software technology developed by NVIDIA and stands for Compute Unified Device Architecture.

In this way, NVIDIA’s GPU can be used beyond image processing to develop C-compilers and to perform other operations. GPUs are, therefore, used for machine learning and other purposes by some program developers.

If you use PyTorch, Stable Diffusion, or another machine learning library, you may encounter the CUDA out-of-memory error.

What Causes ‘CUDA out of memory’ in PyTorch?

What Causes 'CUDA out of memory' in PyTorch?

Python might show an error message “CUDA out of memory” for a variety of reasons. Here are a few of the most common causes:

  • Generally, this error occurs when the batch size is too large when you train your model. To process more data simultaneously, you must increase the batch size, which requires more memory on your GPU. You’ll see the ‘CUDA out of memory’ error if your GPU cannot store the entire batch.
  • You may also see this error if you use a large model architecture. When large models consume your GPU’s memory, your GPU’s performance can be severely hindered.
  • Your model can quickly run out of memory if you fail to free up memory after each iteration. Utilize PyTorch’s memory management functions to keep system memory under control and proactively release variables once they are no longer required.
  • PyTorch keeps track of all variables that require gradients by default. In the case of big models with large batches, this logging will quickly consume all GPU memory.
  • Programs written in PyTorch can sometimes leak GPU memory, meaning they allocate GPU memory without releasing it after they are no longer required. Your GPU may run out of memory at some point, causing the error ‘CUDA out of memory’ to appear.

With the ‘CUDA out of memory’ error now identified, let’s look at solutions that may help you fix it.

How to Fix “RuntimeError: CUDA out of Memory”?

Here are some easy methods using which you can get rid of the RuntimeError: CUDA out-of-memory issue:

Fix 1: Changing the Batchsize

Reducing the batch size is the best option if you are using some pre-existing code or model architecture. Once you have cut the file in half, keep chopping it down until you are not getting the error anymore.

Even if you set the batch size to 1, if it still doesn’t help, other problems may need to be solved before larger batch sizes become effective.

In PyTorch, gradient accumulation is achieved by not calling optimizer.step() and optimizer.zero_grad() after every forward pass. A backward pass occurs once every ‘n,’ where ‘n’ is the number of steps to accumulate gradients over):

Fix 2: Use Mixed Precision Training

When using mixed precision training, your model can be trained with lower-precision data types, reducing the amount of memory it uses.

Modern GPUs feature more power than ever before, so mixed precision training uses this power to boost the performance of models without compromising accuracy.

While reducing memory usage and maintaining neural network performance, it utilizes 32-bit and 16-bit floating point types to maximize speed and efficiency.

Numerous parts of deep learning models, like activation functions, are not sensitive to precision. To reduce the memory footprint and speed up execution time without compromising model quality, half-precision calculations (float16) can be used.

With PyTorch’s torch.cuda.amp package, mixed precision training is relatively simple. In this package, amp.autocast is a Python context manager that allows the user to specify how precise operations should be performed.

You can reduce the memory usage of your model by as much as 50% by using half-precision (FP16) instead of single-precision (FP32). There may be convergence issues with PyTorch batch-norm layers.

To resolve this, ensure that your batch norm layers are float32 and remember to cast between float32 and float16 between each layer’s inputs and outputs when necessary.

Fix 3: Use a Smaller Model Architecture

Choosing a model architecture with a small memory footprint is crucial. Models with more layers or complex structures typically consume more memory during forward/backward passes if they have many layers or structures.

Using a smaller model architecture may be a good idea if you often run into ‘CUDA out of memory’ errors.

Performance is not necessarily compromised when you go for a simpler or smaller model. There is a wide variety of memory-efficient, high-performance models available online.

In terms of computational resources and model accuracy, MobileNet and EfficientNet provide a good trade-off. By using depth-separable convolutions, such architectures can reduce the number of parameters that can be trained without sacrificing accuracy.

Fix 4: Free Unused GPU Memory

With a torch.cuda.empty_cache(), you can manually clear GPU memory in PyTorch. You should incorporate this function after batch processing at the appropriate point in your code.

So, that’s how to fix the RuntimeError: CUDA out of Memory. It’s our hope that this guide has helped you. But suppose in case you have any questions or doubts regarding this topic on your mind, comment below and let us know.

Further Reading:

  • How to Fix Driver Overran Stack Buffer Error?
  • How to Check HDD and SSD Health in Windows?
  • What is Killer Network Service? Everything You Need to Know

Snapchat

Search code, repositories, users, issues, pull requests...

Provide feedback.

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly.

To see all available qualifiers, see our documentation .

  • Notifications

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:1 and cuda:0! (when checking argument for argument weight in method wrapper_CUDA__native_layer_norm) #27692

@nirdoshrawal009

nirdoshrawal009 commented Nov 24, 2023

@SunMarc

SunMarc commented Nov 24, 2023

Sorry, something went wrong.

No branches or pull requests

@SunMarc

IMAGES

  1. 6 Effective Ways to Fix Runtime 217 Error in Windows 10/8.1/8/7

    how to fix a runtime error

  2. How to Fix Runtime Error 217 in Windows 10 /8/7

    how to fix a runtime error

  3. Runtime Error: What It Is and How to Fix It

    how to fix a runtime error

  4. How To Fix Runtime Error For Windows 7/8/10/11

    how to fix a runtime error

  5. How to Fix "Runtime Error (Microsoft C++ Runtime Library) C:\Windows\system32\atibtmon.exe"

    how to fix a runtime error

  6. How To Fix Runtime Error On Windows (Step By Step Guide) 2023 » TechMaina

    how to fix a runtime error

VIDEO

  1. How to FIX Runtime Error In Pojav Launcher😎🤩

  2. Runtime Errors

  3. Fix Runtime Error Could Not Call Proc On Windows PC

  4. Runtime Error 429 Activex Component Can't Create Object In Windows 10 Fix

  5. Runtime Error Code 0x80FE0000 in Windows 10 / 11 Fixed

  6. Runtime error fix 100% working

COMMENTS

  1. Runtime Error: What It Is and How to Fix It

    Restart the computer. This is the likely solution if your computer suddenly feels like it's running much slower than usual. Some runtime errors are caused by memory-related issues, and restarting is the quickest way to close everything that's currently running on your PC.

  2. What are Runtime Errors? Their causes and How to fix them?

    In such a case, the runtime errors can only be solved by downloading the update patches from the developer's website. Fix: AppModel Runtime Errors 57, 87, 490, etc. 3] Incomplete...

  3. Top 7 Ways to Fix Runtime Errors on Windows 11

    1. Run SFC and DISM Scans Damaged or corrupted system files on your PC can cause runtime errors. Fortunately, Windows includes some built-in tools that can help you easily repair those system...

  4. What Are Windows Runtime Errors and How Do You Fix Them?

    Runtime errors are any application error when a program is executed. Learn the five common types of runtime error, how to fix them with reboot, update, drivers, reinstall or repair, and safe mode, and how to check for corrupted files and malware.

  5. How to Fix Runtime Errors in Windows 11

    The first fix you should attempt when dealing with a runtime error, is to ensure you have the latest version of the Microsoft Visual C++ Redistributable. You can install the latest version of the package manually by first uninstalling the current version on your computer, then downloading the latest update from Microsoft's website.

  6. How to Fix a "vcruntime140.Dll Is Missing" Error on Windows 10

    Downloading DLL Files Online Keeping Windows 10 Maintained Repairing or Removing a Microsoft Visual C++ Installation The vcruntime140.dll file is part of the Microsoft Visual C++ software runtime library.

  7. Fix: Microsoft Visual C++ Runtime Library Error In Windows

    Choose Device Manager. Right Click your Display Adapter and Choose the Driver Tab. Click Roll Back, test after each roll back to see which version works for you. If none works, then Reinstall the Display Adapter from the Manufacturer's site and disable updates from installing the driver automatically. ^see link above.

  8. What Are Runtime Errors, and How Do You Fix Them?

    Windows What Are Runtime Errors, and How Do You Fix Them? By Arthur Brown Published Sep 7, 2021 Runtime errors can really hamper your productivity, but how do you stop them from popping up? Here's a guide about the most common kinds. Readers like you help support MUO.

  9. How to Fix Windows Runtime Errors

    Tip If you're getting a runtime error code and error message (e.g., "Runtime error 75 path/file access error"), skip to the runtime error listing for a listing of runtime error codes and errors. Microsoft Windows Runtime errors can be caused by a lot of different problems with the computer.

  10. Runtime errors in Internet Explorer

    To do so, follow these steps in Internet Explorer: Select the Tools button, and then select Internet Options. Or, press ALT+T, and then press O. In the Internet Options dialog box, select the Advanced tab. Select the Disable script debugging (Internet Explorer) and Disable script debugging (Other) check boxes.

  11. The Step-by-Step Guide to Fix Runtime Error on Windows 10

    Solution 1: Temporarily Disable Microsoft Services Solution 2: Run the Application in Safe Mode Solution 3: Ensure That You Have Enough Memory and Storage Space Solution 4: Scan for Malware Solution 5: Repair Visual C++ Runtime Solution 6: Reinstall Visual C++ Runtime Solution 7: Perform a Clean Boot Solution 8: Rollback/Reinstall Display Driver

  12. 7 Ways to Fix Microsoft Visual C++ Runtime on Windows 10

    Remove your graphics card driver. Type device manager in the Search bar and select Device Manager from the list of results. Expand the Display adapters section, and right-click your graphics card. Select the Uninstall device option from the menu. Check Delete the driver software for this device and click on Uninstall.

  13. How to Fix VBA Runtime Error 32809 in 3 Minutes (Excel)

    Learn how to quickly resolve VBA Runtime Error 32809 in Excel with this comprehensive guide.

  14. How to Fix Windows Runtime Error in Windows 10?

    To fix it, perform a Clean Boot with the following steps: Go to Windows Search box; type msconfig and open System Configurations. (See Figure 5) Figure 5: Open System Configuration. Go to Services and select Hide all Microsoft Services. (See Figure 6) Figure 6: Hide all Microsoft Services. Click Disable All.

  15. How to fix Runtime Error 217 on Windows 11/10

    To do that, hit Win + S, type " Add or remove programs ", and click . Now, search out the application that's giving you the Runtime error, select, and click Uninstall. Now, reinstall the ...

  16. How To Fix Runtime Error in Windows 10?

    Type msconfig in the Windows run box (press Windows and R together) and click on OK. The System Configuration dialogue box will get opened. Move to the Services tab and unselect the Hide all Microsoft Services checkbox (if selected), click on Disable all option and click on OK. Next, switch to the Startup tab and click on Open Task Manager link ...

  17. Error Message: Runtime Error 216

    Resolution. To resolve this issue, run an updated antivirus program to remove the virus from your computer. Make sure that all your infected computers are physically disconnected from the Internet and any other networks while you work to resolve this issue. For instructions about how to recover an infected computer, visit the following Carnegie ...

  18. What is a runtime error, and how to fix it

    QUICK ANSWER Runtime errors are problems that occur when a specific application encounters a problem and crashes. There are many possible ways to fix runtime errors, including restarting...

  19. How to Fix Runtime Error on Windows in 4 Ways

    Step 1: Click on Start and then "Control Panel". Step 2: Then in control panel, under the "Programs", click on "Uninstall a program" option. Step 3: Select the Microsoft Visual C++ packages installed on your computer and uninstall them. Step 4: Restart the computer and let the changes take effect.

  20. Fix Runtime Error With 12 Workable Ways

    Most times, what causes runtime errors in programming are bugs that the programmers knew about but found difficult to fix. Sometimes, the problems are memory leaks or the application requires some system resources to run correctly. Below are some solutions you can explore to fix the runtime errors in programming. Fix 1: Restart Your Computer

  21. How To Fix Run Time Error On Windows 10

    How To Fix Run Time Error On Windows 10.Today I have shown in this video, how you fix run time errors in Windows 10. Hope you like this video.👍💕Subscribe f...

  22. Runtime Errors

    When runtime errors occur after a program has been distributed to the public, developers often release patches, or small updates designed to fix the errors. Anyone can find the list of issues that they might face if they are a beginner in this article.

  23. How to Fix Runtime Error on Windows (Step by Step Guide) 2023

    Restart your PC and keep pressing the F8 key while booting. A new window called " Advanced Boot Options " will appear on the screen. Use the arrow keys on the keyboard to enter the safe mode. Select the "Safe" mode and press the " Enter " key. Wait for the system to boot into safe mode. 7.

  24. 5 Ways to fix Server Error in '/' Application Runtime Error

    How do I fix server error in '/' application runtime error? 1. Try a different browser If you notice that this error appears on your default browser, then maybe it would be time that you install another one just to see if it reacts differently, and we suggest you try out Opera One. It is a very responsive browser that can load pages fast.

  25. "Unable to run AutoCAD" when opening AutoCAD software

    View levels of support. During the launch of an AutoCAD software, the following message appears: Unable to run AutoCAD. This may be due to one of the following reasons: 1) This version of AutoCAD was not installed properly. In this case, you may wish to reinstall AutoCAD. 2) You do not have sufficient rights to run AutoCAD.

  26. Fix: Runtime Error 76

    Position: Columnist Anna is an editor of the MiniTool Team. She worked in this big family since her graduation. Her articles mainly focus on data backup and recovery, disk cloning, and file syncing, committed to resolving the data loss issues users may encounter on their PCs.

  27. [2023] How to Fix Run Time Error 1004 in Excel

    Don't worry if you come across the run time error 1004 in Excel while working with VBA. Here are 7 quick fixes to get rid of it.

  28. How to Fix "RuntimeError: CUDA out of Memory"?

    You should incorporate this function after batch processing at the appropriate point in your code. optimizer.zero_grad () loss.backward () optimizer.step () torch.cuda.empty_cache () So, that's how to fix the RuntimeError: CUDA out of Memory. It's our hope that this guide has helped you.

  29. RuntimeError: Expected all tensors to be on the same device ...

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window.