Hi,
Thank you for your valuable reply.
Based on your response I can understand that after performing SFC scan program works fine. The reason why the 0xc0000142 error appears due to corrupt or damaged files most typically dll files. When you tried performing SFC scan it fixes the issue, however some application on your computer might be corrupting the file again.
I suggest you to follow below mentioned step.
Step 1
SFC
System File Checker is a utility in Windows that allows users to scan for corruptions in Windows system files and restore corrupted files.
https://support.microsoft.com/kb/929833?wa=wsignin1.0
Note: After performing SFC scan, follow the next step.
Step 2
Perform clean boot
Clean boot: To help troubleshoot error messages and other issues, you can start Windows by using a minimal set of drivers and startup programs. This kind of startup is known as a "clean boot." A clean boot helps eliminate software conflicts.
You may refer to the below mentioned link to perform clean boot in windows.
https://support2.microsoft.com/kb/929135?wa=wsignin1.0
Note: After troubleshooting, refer to this section "How to reset the computer to start normally after clean boot troubleshooting".
Note: we are performing these steps to identify which program is causing the issue. I suggest you to work with the application on clean boot state for some time.
Hope this helps, get back to us with the result we will assist you further.