Runtime Errors – Windows

Runtime errors are problems with starting a program or application and typically stop you from using your PC like you want to. Sometimes they go away on their own, and other times you have to take more direct action to sort them out. Here’s how to fix runtime errors.

Error Message:

A Runtime Error has occurred. Do you wish to Debug?
Line: line number
Error: nature of script error
Runtime Error! This application has requested the Runtime to terminate it in an unusual way. Please contact the applications support team for more information.

There are multiple reasons for runtime error, due to different applications,. Pay attention to the content below, if you are not sure what causes the error actually, It is probably that there’s a known error with the application but cannot be repaired.

The runtime error can give rise to information missing of the file errors, current operated files 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.

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


Fix Error #1: Restart your PC

An oldie but a goodie, restarting your system can often fix your problems, and runtime errors are no exception.

Fix Error #2: Disable Microsoft Services (Temporarily)

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.

  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.
  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.
  3. After that, navigate to Services tab and check the Hide all Microsoft Services checkbox.
  4. After clicking Disable all, click on the OK button to save changes and exit.
  5. Reboot your computer and check whether the runtime error is fixed successfully or not.

Fix Error #3: Run the app in Safe Mode

Run the app in Safe Mode. Safe mode is the most barebones Windows you can run and it sometimes allows apps to run that wouldn’t otherwise be able to. Boot into Safe Mode, then try running the application again.

  1. Right click the Start button, and then select Settings from the menu.
  2. Navigate to Update & Security. Click Recovery, and then click Restart now.
  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 F4F5 or F6.
  4. Then run your application now.

Fix Error #4: Scan for Malware

It’s not unheard of for malware and viruses to cause runtime errors with certain applications. It’s never a bad idea to scan your system to make sure it’s clean of any infections. Run a scan with your favorite antivirus software, or read up on how to clean your system from malware.

Fix Error #5: Reinstall Visual C++ Runtime

  1. Open the Run window by pressing Win plus R keys. Type appwiz.cpl and hit the Enter key to go on.
  2. Find ALL Microsoft Visual C++ programs in the list. Then uninstall them one by one.
  3. Download a new copy of Microsoft Visual C++ by Microsoft here, and then install it to your computer.

Fix Error #6: Rollback / Reinstall Display Driver

This method has worked for a number of people, since Runtime is needed by many other applications and Windows is heavily dependent on it 

  1. Hold the Windows Key and Press X
  2. Choose Device Manager. Right Click your Display Adapter and Choose the Driver Tab.
  3. Click Roll Back, test after each roll back to see which version works for you.
  4. If none works, then Reinstall the Display Adapter from the Manufacturer’s site and disable updates from installing the driver automatically.  

Fix Error #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.

  1. Login to your computer with administrative rights.
  2. Type msconfig in the Run window to open System Configuration.
  3. Navigate to Services tab and uncheck Hide all Microsoft services, and then click Disable all and click on OK to save changes.
  4. Navigate to the Startup option and click Open Task Manager.
  5. Click the Startup button in Task Manager.
  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.
  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. 

Fix Error #8: Running Diagnostics

  1. End the current Windows Explorer processes by pressing Ctrl + Shift + Esc and then selecting the Process tab.
  2. Search for Windows Explorer(explorer.exe) from the running applications, right-click on it and click End task.
  3. Press the Windows Key + R and type MdSched and click OK.
  4. Select Restart now and check for problems.
  5. Follow the wizard to check for and solve any memory issues.

Fix Runtime Errors in Internet Explorer

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

  1. Click the Tools button , and then click Internet Options. Or, press ALT+T, and then press O.
  2. In the Internet Options dialog box, click the Advanced tab.
  3. Click to select the Disable script debugging (Internet Explorer) and Disable script debugging (Other) check boxes, and then click to clear the Display a notification about every script error check box.
  4. Click OK to close the Internet Options dialog box.


Here is an abbreviated list of some of the more common runtime error codes.

  • Code 5 – Illegal function call
  • Code 6 – Overflow
  • Code 7 – Out of memory
  • Code 9 – Subscript out of range
  • Code 10 – Duplicate definition
  • Code 11 – Division by zero
  • Code 13 – Type Mismatch
  • Code 14 – Out of string space
  • Code 19 – No Resume
  • Code 20 – Resume without error
  • Code 28 – Out of stack space
  • Code 35 – Sub or Function not defined
  • Code 48 – Error in loading DLL
  • Code 52 – Bad file name or number
  • Code 53 – File not found
  • Code 54 – Bad file mode
  • Code 55 – File already open
  • Code 58 – File already exists
  • Code 61 – Disk full
  • Code 62 – Input past end of file
  • Code 63 – Bad record number
  • Code 64 – Bad file name
  • Code 68 – Device unavailable
  • Code 70 – Permission denied
  • Code 71 – Disk not ready
  • Code 74 – Can’t rename with different drive
  • Code 75 – Path/File access error
  • Code 76 – Path not found
  • Code 91 – Object variable set to Nothing
  • Code 93 – Invalid pattern
  • Code 94 – Illegal use of NULL
  • Code 102 – Command failed
  • Code 339 – A file is missing or invalid
  • Code 429 – Object creation failed
  • Code 438 – No such property or method
  • Code 439 – Argument type mismatch
  • Code 440 – Object error
  • Code 901 – Input buffer would be larger than 64 K.
  • Code 902 – Operating system error
  • Code 903 – External procedure not found
  • Code 904 – Global variable type mismatch.
  • Code 905 – User-defined type mismatch.
  • Code 906 – External procedure interface mismatch.
  • Code 1001 – Out of memory
  • Code 1025 – DLL is not supported

Was this article helpful?

Related Articles

Leave A Comment?