Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I have Visual Studio Professional 2005 on windows vista 32bit.
I use visual studio for C++.
Since some days the VS is giving me error sometimes whenever I run any program usng ctrl+f5.
It gives me the following error:
The application failed to init 0xc0000142
Unhandled exception at 0x77259cac (ntdll.dll) in VC_CONSOLE.exe: 0xC0000142:
    DLL Initialization Failed.


Many times the programs runs fine and some time it gives the above error.
Even when I change the entire code this problem comes up.
What may be the reason behind this and how to resolve it?
Posted
Updated 5-Jun-11 9:32am
v2
Comments
Sergey Alexandrovich Kryukov 5-Jun-11 15:50pm    
Nothing can be set unless you show your code. Create as simple code as possible showing the exception. Catch exception, dump exception stack to show the lines of code where it happens. "Improve answer" to add the relevant information.
--SA
Sergey Chepurin 5-Jun-11 15:58pm    
You may also ask this question on some of Visual Studio or C++ MSDN forums.

1 solution

You should think about what happens to make this error occur. For example, does it happen when you change a specific file ? If so, it's compiling that file that causes it. Does a rebuild all fix it ? If so, well, VC++ is rubbish and it will do that sometimes. However, the IDE crashes for me often in C#, too, and I just need to restart it. It's a piece of junk.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900