I have a c++ dll which serving some functionality to my main c# application.
Here i try to read a file, load it to memory and then return some information such as the Pointer to loaded data and count of memory blocks to c#. The Dll reads file to memory successfully but on the return to the main application, program crashes due to Heap Corruption(Critical error detected c0000374).
The code is quite simple and straightforward and I have done some similar things before with no problem, However i could not figure out what makes the problem here, I tried to allocate memory using «new, malloc and GlobalAlloc» but neither did help. Codes are as follow:
C++ MyDll:
typedef unsigned long U32;
extern "C" __declspec(dllexport) int ReadFile(LPSTR Path, U32** DataPtr, U32* Count)
{
FILE *fp;
U32 *Data;
CString tempStr(Path);
long fSize;
if(!(fp = fopen(tempStr, "rb"))) {
return 0;
}
// Obtain File Size;
fseek(fp, 0, SEEK_END);
fSize = ftell(fp);
rewind(fp);
Data = (U32 *)GlobalAlloc(0, fSize);
if(Data == NULL) {
fclose(fp);
return -1;
}
// Copy file into the buffer.
if(!(*Count = fread(Data, sizeof(U32), fSize / sizeof(U32), fp))) {
fclose(fp);
free(Data);
return -2;
}
*DataPtr = (U32 *)Data;
return 1;
}
C# Application:
[DllImport(@"MyDll.dll", CallingConvention= CallingConvention.Cdecl)]
private static extern int ReadFile([MarshalAs(UnmanagedType.LPStr)]string Path, out IntPtr dataPtr, out uint Count);
private void readDump(string Path)
{
uint count = 0;
IntPtr Data = new IntPtr();
try{
if(ReadFile(Path, out Data, out count) == 1) //The Program crashes just right after this statement
{
//Do Something ...
}
}
catch() {}
}
The program crashes on both debug and release mode. Unless I pause the program in debug mode after loading the file and call some blocks of memory in the «Visual Studio’s Immediate window».
The size of files to be loaded are around 64MB and we have more than 2GB unused ram on the PC.
UPDATE: I noticed that, some third party programs which they working before, crash with «Exception Code: c0000005», and some other weird things happens in Windows 7 (the Host). so I tested the code in another installation of windows and everything seems to work as they should. So probably it’s related be the Windows 7. Now how could I fix the problem? «sfc /scannow» failed to find any issue.
-
Home
-
Partition Manager
- How to Fix Window 10 Update Error 0xc0000374?
By Charlotte | Follow |
Last Updated
The error code 0xc0000374 may occur after you update Windows 10 to the latest version. In this post, MiniTool Partition Wizard provides some helpful solutions to this error. If you also encounter the same error on your PC, you can have a look at this post.
The Windows update error 0xc0000374 can be caused for various reasons. The main reasons are listed below:
- There are some corrupt system files on your computer.
- You have some unnecessary piled-up update cache on your computer.
If you have done any of these, you can encounter the error code 0xc0000374 easily. However, if you have encountered the same error, you don’t need to worry. Here are some useful solutions that you can use to fix this error on your PC.
Solution 1. Run Windows Update Troubleshooter
The first solution you can try is using the Windows Update Troubleshooter. The Windows Update Troubleshooter can help you solve the problem that occurs while downloading and installing Windows updates. To run the Windows Update Troubleshooter, you need to do as follows:
- Press the Windows and I keys simultaneously to open the Settings window.
- In the Settings window, select the Update & Security section.
- Then select the Troubleshoot option from the left panel.
- Next, click the Additional troubleshooters link from the right panel menu.
- Select Windows Update and then click on the Run the troubleshooter button.
- Once done, restart your PC and check if the error is fixed.
Solution 2. Clear Windows Update Temporary Cache Folder
Some people report that they have fixed the error 0xc0000374 by clearing the Windows update temporary cache folder. You can also have a try. To clear the Windows update temporary cache folder, you can do the following steps:
Step 1. Stop Windows Update Services.
- Click the Search icon on the taskbar and then type “services” in the search box.
- Then you can see Services under the Best Match. You just need to click Open on the right panel.
- In the Services window, scroll down to find and select Windows Update.
- Right-click it and select Stop from the menu.
- Once done, you can stop it successfully.
Step 2. Clean all the unnecessary piled-up caches.
- Press the Windows and R keys at the same time to open the Run window.
- Type “%windir%\SoftwareDistribution\DataStore” in the box and press Enter to open the SoftwareDistribution
- Press the Ctrl and A keys simultaneously to select all the files, and then click the Delete key on your keyboard to delete all the files.
- Access the Services window again and right-click Windows Update from the list.
- Then select Start from the menu.
Step 3. Restart your system and check if the error has been fixed.
Solution 3. Clear Update Path by Using Registry
You can also use the registry to clear the update path to fix this error. Here’s the guide:
Tips:
Modifying the registry is very dangerous. If you are not familiar with modifying key entries in Registry, you’d better skip this solution.
- Press the Windows and R keys to open the Run window.
- Then type “regedit” in the box and click OK.
- Navigate to “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate“.
- Then right-click WUServer and WIStatusServer one by one in the right panel and select Delete from the menu.
- Once done, restart your computer and check if the error is fixed.
Solution 4. Run SFC
Some people fixed the Windows 10 update error 0xc0000374 successfully by running an SFC scan. It may work for you too. You can try running SFC to fix the error on your PC by following the steps below.
- Click the Search icon and then type “cmd” in the search box.
- Then click Run as administrator on the right panel to open it.
- Type “sfc /scannow” and press Enter.
- Once done, restart your computer and check if the error is fixed.
Solution 5. Roll Back the OS to Its Previous State
If you received the Windows 10 update error 0xc0000374 on your PC after you installed a recent security-patch, you can suspect there is something wrong with this patch. In this case, you’d better roll back to the previous to fix it.
Bottom Line
MiniTool Partition Wizard is an all-in-one partition manager and can be used for data recovery and disk diagnosis. If you are interested in MiniTool Partition Wizard and want to know more about it, you can visit MiniTool Partition Wizard’s official website by clicking the hyperlink.
About The Author
Position: Columnist
Charlotte is a columnist who loves to help others solve errors in computer use. She is good at data recovery and disk & partition management, which includes copying partitions, formatting partitions, etc. Her articles are simple and easy to understand, so even people who know little about computers can understand. In her spare time, she likes reading books, listening to music, playing badminton, etc.
I have a c++ dll which serving some functionality to my main c# application.
Here i try to read a file, load it to memory and then return some information such as the Pointer to loaded data and count of memory blocks to c#. The Dll reads file to memory successfully but on the return to the main application, program crashes due to Heap Corruption(Critical error detected c0000374).
The code is quite simple and straightforward and I have done some similar things before with no problem, However i could not figure out what makes the problem here, I tried to allocate memory using «new, malloc and GlobalAlloc» but neither did help. Codes are as follow:
C++ MyDll:
typedef unsigned long U32;
extern "C" __declspec(dllexport) int ReadFile(LPSTR Path, U32** DataPtr, U32* Count)
{
FILE *fp;
U32 *Data;
CString tempStr(Path);
long fSize;
if(!(fp = fopen(tempStr, "rb"))) {
return 0;
}
// Obtain File Size;
fseek(fp, 0, SEEK_END);
fSize = ftell(fp);
rewind(fp);
Data = (U32 *)GlobalAlloc(0, fSize);
if(Data == NULL) {
fclose(fp);
return -1;
}
// Copy file into the buffer.
if(!(*Count = fread(Data, sizeof(U32), fSize / sizeof(U32), fp))) {
fclose(fp);
free(Data);
return -2;
}
*DataPtr = (U32 *)Data;
return 1;
}
C# Application:
[DllImport(@"MyDll.dll", CallingConvention= CallingConvention.Cdecl)]
private static extern int ReadFile([MarshalAs(UnmanagedType.LPStr)]string Path, out IntPtr dataPtr, out uint Count);
private void readDump(string Path)
{
uint count = 0;
IntPtr Data = new IntPtr();
try{
if(ReadFile(Path, out Data, out count) == 1) //The Program crashes just right after this statement
{
//Do Something ...
}
}
catch() {}
}
The program crashes on both debug and release mode. Unless I pause the program in debug mode after loading the file and call some blocks of memory in the «Visual Studio’s Immediate window».
The size of files to be loaded are around 64MB and we have more than 2GB unused ram on the PC.
UPDATE: I noticed that, some third party programs which they working before, crash with «Exception Code: c0000005», and some other weird things happens in Windows 7 (the Host). so I tested the code in another installation of windows and everything seems to work as they should. So probably it’s related be the Windows 7. Now how could I fix the problem? «sfc /scannow» failed to find any issue.
What is Error C0000374?
Error C0000374 is a kind of Runtime error that is found in the Microsoft Windows operating systems. The file can be found for Manga Studio. Critical Error Detected c0000374 has a popularity rating of 1 / 10.
Errors
This tutorial contains information on Error C0000374 or otherwise known as Critical Error Detected c0000374. Errors such as Critical Error Detected c0000374 indicate your machine has faulty hardware or software that should be fixed when possible. Below is information on how to repair Error C0000374 and get your computer back to normal.
Signs of Error C0000374:
- When your computer freezes or locks up at random.
- When your computer crashes when you are running Manga Studio.
- If Critical Error Detected c0000374 pops up and causes a program to shutdown or your computer to crash.
- Your computer is running slow, taking a long time to boot up, and you suspect Error C0000374 by Manga Studio is the cause.
What Causes Runtime Errors Like Error C0000374?
There are several causes of runtime errors like Critical Error Detected c0000374, such as viruses, out of date drivers, missing files or folders, incomplete or poor installation, and registry errors. They can also occur due to an issue with the computer’s memory, which may often be due to a hardware problem. In some cases there was an issue installing Manga Studio and an error occurred.
How to Fix Critical Error Detected c0000374
Follow the step by step instructions below to fix the Error C0000374 problem. We recommend you do each in order. If you wish to skip these steps because they are too time consuming or you are not a computer expert, see our easier solution below.
Step 1 — Uninstall and Reinstall Manga Studio
If the Critical Error Detected c0000374 is a result of using Manga Studio, you may want to try reinstalling it and see if the problem is fixed. Please follow these steps:
Windows XP
- Click “Start Menu”.
- Click “Control Panel”.
- Select the “Add or Remove” program icon.
- Find the Error C0000374 associated program.
- Click the Change/Remove button on the right side.
- The uninstaller pop up will give you instructions. Click “okay” or “next” or “yes” until it is complete.
- Reinstall the software.
Windows 7 and Windows Vista
- Click “Start Menu”.
- Click “Control Panel”.
- Click “Uninstall a Program” which is under the “Programs” header.
- Find the Error C0000374 associated program.
- Right click on it and select “Uninstall”.
- The uninstaller pop up will give you instructions. Click “okay” or “next” or “yes” until it is complete.
- Reinstall the software and run the program.
Windows 8, 8.1, and 10
- Click “Start Menu”.
- Click “Programs and Features”.
- Find the software that is linked to **insert file name**.
- Click Uninstall/Change.
- The uninstaller will pop up and give you instructions. Click “okay” and “next” until it is complete.
- Restart your computer.
- Reinstall the software and run the program.
Step 2 — Remove Registry Entry related to Error C0000374
WARNING: Do NOT edit the Windows Registry unless you absolutely know what you are doing. You may end up causing more trouble than you start with. Proceed at your OWN RISK.
- Create a backup of registry files.
- Click “Start”.
- Type regedit, select it, and grant permission in order to proceed.
- Click HKEY LOCAL MACHINE>>SOFTWARE>>Microsoft>>Windows>>Current Version>>Uninstall.
- Find the Critical Error Detected c0000374 software from the list you wish to uninstall.
- Select the software and double click the UninstallString icon on the right side.
- Copy the highlighted text.
- Exit and go to the search field.
- Paste the data.
- Select Okay in order to uninstall the program.
- Reinstall the software.
Step 3 – Ensure Junk Isn’t Causing Critical Error Detected c0000374
Any space that isn’t regularly cleaned out tends to accumulate junk. Your personal computer is no exception. Constant web browsing, installation of applications, and even browser thumbnail caches slow down your device and in the absence of adequate memory, can also trigger a Critical Error Detected c0000374 error.
So how do you get around this problem?
- You can either use the Disk Cleanup Tool that comes baked into your Windows operating system.
- Or you can use a more specialized hard drive clean up solution that does a thorough job and flushes the most stubborn temporary files from your system.
Both solutions may take several minutes to complete the processing of your system data if you haven’t conducted a clean up in a while.
The browser caches are almost a lost cause because they tend to fill up quite rapidly, thanks to our constantly connected and on the go lifestyle.
Here’s how you can run the Window’s Disk Cleanup Tool, without performance issues or surprises.
- For Windows XP and Windows 7, the program can be ran from “Start” and from the “Command Prompt”.
- Click “Start”, go to All Programs > Accessories > System Tools, click Disk Cleanup. Next choose the type of files you wish to remove, click OK, followed by “Delete Files”.
- Open up the Command Prompt, type “c:\windows\cleanmgr.exe /d” for XP and “cleanmgr” for Windows 7. Finish by pressing “Enter”.
- For Windows 8 and Windows 8.1, the Disk Cleanup Tool can be accessed directly from “Settings”. Click “Control Panel” and then “Administrative Tools”. You can select the drive that you want to run the clean up on. Select the files you want to get rid of and then click “OK” and “Delete Files”.
- For Windows 10, the process is simplified further. Type Disk Cleanup directly in the search bar and press “Enter”. Choose the drive and then the files that you wish to wipe. Click “OK”, followed by “Delete Files”.
The progressive ease with which the Cleanup Tool can be used points to the growing importance of regularly deleting temporary files and its place in preventing Critical Error Detected c0000374.
PRO TIP:
Remember to run the Disk Cleanup as an administrator.
Step 4 – Fix Infections and Eliminate Malware in Your PC
How do you gauge if your system is infected with a malware and virus?
Well, for one, you may find certain applications misbehaving.
And you may also see the occurrence of Error C0000374.
Infections and malware are the result of:
- Browsing the Internet using open or unencrypted public Wi-Fi connections
- Downloading applications from unknown and untrustworthy sources
- Intentional planting of viruses in your home and office networks
But thankfully, their impact can be contained.
- Enter “safe mode” by pressing the F8 key repeatedly when your device is restarting. Choose “Safe Mode with Networking” from the Advanced Boot Options menu.
- Back up all the data in your device to a secure location. This is preferably a storage unit that is not connected to your existing network.
- Leave program files as is. They are where the infection generally spreads from and may have been compromised.
- Run a thorough full-system scan or check of an on-demand scanner. If you already have an antivirus or anti-malware program installed, let it do the heavy lifting.
- Restart your computer once the process has run its course.
- Lastly, change all your passwords and update your drivers and operating system.
PRO TIP: Are you annoyed by the frequent updates to your antivirus program? Don’t be! These regular updates add new virus signatures to your software database for exponentially better protection.
Step 5 – Return to the Past to Eliminate Error C0000374
The steps outlined up until this point in the tutorial should have fixed Critical Error Detected c0000374 error. But the process of tracking what has caused an error is a series of educated guesses. So in case the situation persists, move to Step 5.
Windows devices give users the ability to travel back in time and restore system settings to an uncorrupted, error free state.
This can be done through the convenient “System Restore” program. The best part of the process is the fact that using System Restore doesn’t affect your personal data. There is no need to take backups of new songs and pictures in your hard drive.
- Open “Control Panel” and click on “System & Security”.
- Choose the option “System”.
- To the left of the modal, click on “System Protection”.
- The System Properties window should pop-up. You’ll be able to see the option “System Restore”. Click on it.
- Go with “Recommended restore” for the path of least hassles and surprises.
- Choose a system restore point (by date) that will guarantee taking your device back to the time when Error C0000374 hasn’t been triggered yet.
- Tap “Next” and wrap up by clicking “Finish”.
If you’re using Windows 7 OS, you can reach “System Restore” by following the path Start > All Programs > Accessories > System Tools.
Step 6 — Error C0000374 Caused by Outdated Drivers
Updating a driver is not as common as updating your operating system or an application used to run front-end interface tasks.
Drivers are software snippets in charge of the different hardware units that keep your device functional.
So when you detect an Critical Error Detected c0000374 error, updating your drivers may be a good bet. But it is time consuming and shouldn’t be viewed as a quick fix.
Here’s the step-by-step process you can go through to update drivers for Windows 8, Windows 8.1 and Windows 10.
- Check the site of your hardware maker for the latest versions of all the drivers you need. Download and extract them. We strongly advice going with original drivers. In most cases, they are available for free on the vendor website. Installing an incompatible driver causes more problems than it can ever fix.
- Open “Device Manager” from the Control Panel.
- Go through the various hardware component groupings and choose the ones you would like to update.
- On Windows 10 and Windows 8, right-click on the icon of the hardware you would like to update and click “Update Driver”.
- On Windows 7 and Vista, you right-click the hardware icon, choose “Properties”, navigate to the Driver panel, and then click “Update Driver”.
- Next you can let your device automatically search for the most compatible drivers, or you can choose to update the drivers from the versions you have on your hard drive. If you have an installer disk, then the latter should be your preferred course of action. The former may often get the driver selection incorrect.
- You may need to navigate a host of warnings from the Windows OS as you finalize the driver update. These include “Windows can’t verify that the driver is compatible” and “Windows can’t verify the publisher of this driver”. If you know that you have the right one in line, click “Yes”.
- Restart the system and hopefully the Critical Error Detected c0000374 error should have been fixed.
Step 7 – Call the Windows System File Checker into Action
By now the Critical Error Detected c0000374 plaguing your device should have been fixed. But if you haven’t resolved the issue yet, you can explore the Windows File Checker option.
With the Windows File Checker, you can audit all the system files your device needs to operate, locate missing ones, and restore them.
Sound familiar? It is almost like “System Restore”, but not quite. The System Restore essentially takes you back in time to a supposedly perfect set up of system files. The File Checker is more exhaustive.
It identifies what is amiss and fills the gaps.
- First and foremost, open up an elevated command prompt.
- Next, if you are using Windows 8, 8.1 or 10, enter “DISM.exe /Online /Cleanup-image /Restorehealth” into the window and press Enter.
- The process of running the Deployment Image Servicing and Management (DISM) tool may take several minutes.
- Once it completes, type the following command into the prompt “sfc /scannow”.
- Your device will now go through all protected files and if it detects an anomaly, it will replace the compromised version with a cached version that resides at %WinDir%\System32\dllcache.
Step 8 – Is your RAM Corrupted? Find Out.
Is it possible? Can the memory sticks of your device trigger Error C0000374?
It is unlikely – because the RAM chips have no moving parts and consume little power. But at this stage, if all else has failed, diagnosing your RAM may be a good move.
You can use the Windows Memory Diagnostics Tool to get the job done. Users who are on a Linux or Mac and are experiencing crashes can use memtest86.
- Open up your device and go straight to the “Control Panel”.
- Click on “Administrative Tools”.
- Choose “Windows Memory Diagnostic”.
- What this built-in option does is it burns an ISO image of your RAM and boots the computer from this image.
- The process takes a while to complete. Once it is done, the “Status” field at the bottom of the screen populates with the result of the diagnosis. If there are no issues with your RAM/memory, you’ll see “No problems have been detected”.
One drawback of the Windows Memory Diagnostic tool pertains to the number of passes it runs and the RAM segments it checks.
Memtest86 methodically goes over all the segments of your memory – irrespective of whether it is occupied or not.
But the Windows alternative only checks the occupied memory segments and may be ineffective in gauging the cause of the Critical Error Detected c0000374 error.
Step 9 – Is your Hard Drive Corrupted? Find Out.
Your RAM or working memory isn’t the only culprit that may precipitate an Critical Error Detected c0000374 error. The hard drive of your device also warrants close inspection.
The symptoms of hard drive error and corruption span:
- Frequent crashes and the Blue Screen of Death (BSoD).
- Performance issues like excessively slow responses.
- Errors like Error C0000374.
Hard drives are definitely robust, but they don’t last forever.
There are three things that you can do to diagnose the health of your permanent memory.
- It is possible that your device may have a hard time reading your drive. This can be the cause of an Critical Error Detected c0000374 error. You should eliminate this possibility by connecting your drive to another device and checking for the recurrence of the issue. If nothing happens, your drive health is okay.
- Collect S.M.A.R.T data by using the WMIC (Windows Management Instrumentation Command-line) in the command prompt. To do this, simply type “wmic” into the command prompt and press Enter. Next follow it up with “diskdrive get status”. The S.M.A.R.T status reading is a reliable indicator of the longevity of your drive.
- Fix what’s corrupt. Let’s assume you do find that all isn’t well with your hard drive. Before you invest in an expensive replacement, using Check Disk or chkdsk is worth a shot.
- Open the command prompt. Make sure you are in Admin mode.
- Type “chkdsk C: /F /X /R” and press “Enter”. “C” here is the drive letter and “R” recovers data, if possible, from the bad sectors.
- Allow the system to restart if the prompt shows up.
- And you should be done.
These steps can lead to the resolution you’re seeking. Otherwise the Critical Error Detected c0000374 may appear again. If it does, move to Step 10.
Step 10 – Update Windows OS
Like the software applications you use to render specific tasks on your device, the Operating System also requires periodic updates.
Yes, we’ve all heard the troubling stories.
Devices often develop problems post unfinished updates that do not go through. But these OS updates include important security patches. Not having them applied to your system leaves it vulnerable to viruses and malware.
And may also trigger Error C0000374.
So here’s how Windows 7, Windows 8, Windows 8.1 and Windows 10 users can check for the latest updates and push them through:
- Click the “Start” button on the lower left-hand corner of your device.
- Type “Updates” in the search bar. There should be a “Windows Update” or “Check for Updates” option, based on the OS version you’re using.
- Click it. The system will let you know if any updates are available.
- You have the convenience of choosing the components of the update you’d like to push through. Always prioritize the security updates.
- Click “OK” followed by “Install Updates”.
Step 11 – Refresh the OS to Eliminate Persistent Critical Error Detected c0000374 Error
“Windows Refresh” is a lifesaver.
For those of you who are still with us and nothing has worked to eliminate the Error C0000374, until recently, a fresh install of Windows would have been the only option.
Not anymore.
The Windows Refresh is similar to reinstalling your Windows OS, but without touching your personal data. That’s hours of backup time saved in a jiffy.
Through the Refresh, all your system files become good as new. The only minor annoyance is the fact that any custom apps you’ve installed are gone and the system applications you had uninstalled are back.
Still, it is the best bet as the final step of this process.
- Enter the “Settings” of your PC and click on “Change Settings”.
- Click “Update and recovery” and then choose “Recovery”.
- Select “Keep my files”. This removes apps and settings, but lets your personal files live on.
- You’ll get some warning messages about the apps that will be uninstalled. If you’ve gone through a recent OS upgrade, the Refresh process makes it so that you can’t go back to your previous OS version – if you should ever feel the need to do it.
- Click the “Refresh” button.
Are you using an older version of Windows that doesn’t come with the power to “Refresh”?
Maybe it is time to start from scratch.
- Enter your BIOS set-up.
- This is where you need to change your computer’s boot order. Make it so that the boot happens not from the existing system files, but from the CD/DVD Drive.
- Place the original Windows disk in the CD/DVD drive.
- Turn on or restart the device.
- Choose where you’d like the system files to be installed.
- Your PC will restart several times as the process runs its course.
FAQ’s
Should I Restore My Computer to Fix Runtime Errors Like Error C0000374?
Restoring your computer to an earlier version may solve the problem, depending on what’s causing the runtime error. For example, if it’s due to a hardware issue then restoring your computer to an earlier date may not solve the problem. However, if it’s because of a newly installed program, then restoring to a date before the corrupt program was installed may do the trick.
Will Removing Runtime Errors Like Error C0000374 Improve My Start Up Speed?
Runtime errors have no impact on the start up speed since the error occurs while the program is running. It may, however, cause the OS to crash during or after start up. Correcting runtime errors will have no impact on the startup speed of the computer. It may just help you save time by reducing crashes and errors which may cause the computer to keep starting up.
Are Runtime Errors Like Error C0000374 Related to the Blue Screen of Death (BSoD)?
Yes, the two can be connected since a BSoD is often due to the OS not being able to access a file, leading the system to crash. Technically speaking, a runtime error does not cause BSoD but the two can be interlinked. Solving the cause of runtime errors may also help you get rid of the blue screen of death. They are both usually due to the same reason, such as a hardware error.
Start Download Now
Author:
Curtis Hansen has been using, fiddling with, and repairing computers ever since he was a little kid. He contributes to this website to help others solve their computer issues without having to buy a new one.
Did you recently encounter the error code 0xc0000374 while updating Windows 10 to the latest build version? Well, this problem usually occurs due to the presence of corrupt system files or unnecessary piled up update cache. If you have recently installed an incorrect cumulative update, this issue may also start occurring on Windows 10.
To address the 0xc0000374 error, we suggest running the Update Troubleshooter and repair corrupt/missing files using SFC. If the error appears again, try deleting the stored Cache or clearing the Windows Update download path. If none of the solutions resolve this bug, manually install the pending security-patches. Besides, one may also try using the Restore Points, Clean install Windows, or Reset this PC.
How to fix Update Error Code 0xc0000374 in Windows 10
To solve the Update Error 0xc0000374 on Windows 10, use the following steps-
1] Run Windows Update Troubleshooter
Troubleshooter is by default the best tool to resolve any update-related issues on Windows 10. Running the update troubleshooter will look for possible bugs and errors and fix them as well. Here’s how to run this tool –
- Open the Settings app using Win & I hotkey.
- Click Update & Security thereafter Troubleshoot on the upcoming screen.
- Jump to the right pane and click the “Additional troubleshooters” link.
- Click Windows Update once and hit Run the troubleshooter.
- Since this takes a couple of minutes to find and solve any issue, so wait accordingly.
- Once this is over, Restart Windows and attempt to re-install the pending patches.
If this method doesn’t work, try the next set of solutions –
2] Clear Windows Update temporary cache folder
At times, the 0xc0000374 error comes into existence due to unnecessary stored cache inside the update folder. In such cases, clearing the specific folder may help to diagnose this error. However, make sure to stop all the essential services before deleting any cache. Here’s how to proceed –
- Jointly press Win+S to invoke the Search UI.
- Type “services” at the text field and hit the well-matching result.
- When the Services window opens up, reach out to the Windows Update and do the right-click.
- Subsequently, select Stop on the context menu.
Now that you have stopped update services, it’s time to clean unnecessary piled up cache using below steps –
- Use the Win+R key combination to start the Run dialog.
- Copy/paste the below line at the void and hit Enter.
%windir%\SoftwareDistribution\DataStore
- Running the above command-line will take you to the SoftwareDistribution folder.
- Use Ctrl+A to select all the items and hit Delete to remove them all.
- Re-visit the Services window and put right-click on the Windows Update.
- Next, choose to restart using the shortcut menu.
- After completing the above steps successfully, Reboot PC so as to implement the recent changes.
3] Use the System File Checker (SFC) utility Program
If you are still encountering the 0xc0000374 error, this must be due to corrupt system files on the computer. The company provides a great in-built tool to address damaged or missing core files. Here’s how to use this default utility program on Windows 10 –
- Hit Start Menu and start typing on your keyboard for “cmd“.
- When the Command prompt pops up in the search results, do the right-click and select “Run as Administrator“.
- If you are not an Admin, this prompts for a password. Otherwise, just tap Yes on the UAC window.
- When the Windows Console opens up, execute the command –
sfc/ scannow
.
- The above code takes approximately 15-20 minutes searching and repairing obsolete files, hence wait accordingly.
- Once over, Restart Windows to incorporate the latest changes.
- Sign back into Windows and re-attempt installing the pending patches. This should work fine.
However, if not, try the next workaround –
4] Clear Update path using Registry
If you have come down this below, you haven’t yet configured how-to address this error. Well, try this and the next solution and you won’t be getting the update 0xc0000374 anymore on the computer. This method depicts how to clear the Windows Update download path using registry tweaks. If you are not comfortable modifying key entries on the Registry, we suggest skipping this solution and try the next one. Here are the essential steps to work upon –
Note: Do opt-in for an Automatic Registry Backup in Windows 10 if you are willing to modify the registry –
- Make a right-click on the Windows icon and click Run.
- Type “
regedit
” near the blinking cursor and hit the Enter key. - Now, navigate the below address –
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate
- Head over to the right side and look for DWORD keys titled “WUServer ” and “WIStatusServer “.
- Put a right-click on each one of them and hit “delete”.
Note: If you don’t find any resembling keys, you cannot clean the download path.
- Restart the computer so that changes made come into effect from the next Windows 10 start-up.
You may now check for any pending updates visiting the path – Settings > Update & Security > Windows Update
.
If the bug persists even after this, this is not a usual update-related issue and you must perform some advanced solutions. For example – Using System backups, Performing “Reset this PC“, or Clean Install Windows 10. If you are still quite not sure, you may try the last workaround as this is more like a fresh Windows installation to a little bit.
5] Manually install the latest Cumulative Updates
If you start receiving the 0xc0000374 error after installing a recent security-patch, there might be some issue with the cumulative update itself. In such scenarios, we suggest rolling back the OS to its previous state.
Or, you may manually download and install the latest Standalone package on the computer. To do so, you need to first know the recent CU number matching your system architecture. You may visit the Cumulative Update Catalog to know whether there lies any new patch or not. Once you have the required “KB” number, follow the below steps to download and install the .msu file.
Manually Install the Available Updates
- Visit the Microsoft Update Catalog website and type the “KB” number noted above.
- This will present a list of well-matching results, choose one as per the system architecture.
- Click Download next to the update link thereafter the top link on the upcoming window.
- When the download completes, click twice on the setup file to upgrade the operating system.
That’s it, I hope you find this article useful addressing the 0xc0000374 error on Windows 10. If you have any queries or suggestions, you may reach us via the comment section.