Managed C++: The application failed to initialize properly (0xc000007b).Click on OK to terminate the

T

Tommy Vercetti

I've been trying to convert a Standard C++/MFC application to Managed
C++/Forms (the application is pretty complex but the GUI is just a
simple status dialog).

I created a new project shell and have been slowly adding in new code.
The code compiles perfectly but now when I try to run or debug I get the
error:

"The application failed to initialize properly (0xc000007b). Click on OK
to terminate the application."

I can't find any information on this error; I don't know what to try.
I've tried to backtrack to find the exact point that this problem arose
but I that approach isn't producing results. This is very frustrating.
I'd like to figure out why this error is happening?


Managed C++ is far more buggy and problem prone than I would have
thought. Anyone seen issues like this or have advice to offer?
 
T

Tomas Restrepo \(MVP\)

Tommy,
I've been trying to convert a Standard C++/MFC application to Managed
C++/Forms (the application is pretty complex but the GUI is just a
simple status dialog).

I created a new project shell and have been slowly adding in new code.
The code compiles perfectly but now when I try to run or debug I get the
error:

"The application failed to initialize properly (0xc000007b). Click on OK
to terminate the application."

I can't find any information on this error; I don't know what to try.
I've tried to backtrack to find the exact point that this problem arose
but I that approach isn't producing results. This is very frustrating.
I'd like to figure out why this error is happening?


Managed C++ is far more buggy and problem prone than I would have
thought. Anyone seen issues like this or have advice to offer?

Error 0xC000007B is STATUS_INVALID_IMAGE_FORMAT, which suggest your
executable (or one of the generated libraries) is getting corrupted during
generation, which is weird, because this should not generally happen.

Do you have an antivirus installed? if so, try disabling it temporarily and
rebuilding from scratch and see if it helps...
 
T

Tommy Vercetti

Tomas said:
Error 0xC000007B is STATUS_INVALID_IMAGE_FORMAT, which suggest your
executable (or one of the generated libraries) is getting corrupted during
generation, which is weird, because this should not generally happen.

Do you have an antivirus installed? if so, try disabling it temporarily and
rebuilding from scratch and see if it helps...

Thank you again Tomas, you've been extremely helpful. For whatever
reason, the executables I build run on other computers just not on my
main dev machine. I can build the exact same code and project on another
system and it runs there but won't run on my main dev system (same
0xC000007B error). This is really bizarre. Any other ideas? I haven't
noticed any other problems on my dev system. My main dev system is
running Windows XP (SP2 fully patched) where the other system (the one
that is working) is running Windows 2000. Any ideas?
 
T

Tommy Vercetti

Tommy said:
Thank you again Tomas, you've been extremely helpful. For whatever
reason, the executables I build run on other computers just not on my
main dev machine. I can build the exact same code and project on another
system and it runs there but won't run on my main dev system (same
0xC000007B error). This is really bizarre. Any other ideas? I haven't
noticed any other problems on my dev system. My main dev system is
running Windows XP (SP2 fully patched) where the other system (the one
that is working) is running Windows 2000. Any ideas?

To restate:

The app runs fine on Win2K system. Can be built on Win2K or WinXP system.
The app doesn't run (with 0xC000007B error) on WinXP system. Doesn't
matter whether it was built on Win2K or WinXP.

I can build a simple MC++ "Hello World" test and run it successfully on
the WinXP system.

Any ideas?
 
T

Tomas Restrepo \(MVP\)

Hi Tommy,
To restate:

The app runs fine on Win2K system. Can be built on Win2K or WinXP system.
The app doesn't run (with 0xC000007B error) on WinXP system. Doesn't
matter whether it was built on Win2K or WinXP.

I can build a simple MC++ "Hello World" test and run it successfully on
the WinXP system.


Humm... sounds like the problem might be a corrupted or missing dependency.
Does it run if you compile in release instead of debug, or doesn't it make
any difference?

if it does, then sounds like a reinstall of VS.NET or the .NET framework on
the problematic machine is in order
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top