473,791 Members | 3,277 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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?
Nov 17 '05 #1
4 12660
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...
--
Tomas Restrepo
to****@mvps.org
http://www.winterdom.com/
Nov 17 '05 #2
Tomas Restrepo (MVP) wrote:
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?
Nov 17 '05 #3
Tommy Vercetti wrote:
Tomas Restrepo (MVP) wrote:
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?


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?
Nov 17 '05 #4
Hi Tommy,
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.

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
--
Tomas Restrepo
to****@mvps.org
http://www.winterdom.com/
Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1197
by: Ritu | last post by:
Hello, I am developing an application where my GUI part was developed using MFC in Visual Studio 6. It is implemented as a DLL. This DLL is used by a third party application as a plug-in. I had to develop a Mixed- mode DLL in Visual Studio .Net 2003. This DLL was developed to provide some functionality which could be provided using .NET framework only (The assemblies it uses are all .NET assemblies). Now, i want to use this DLL in my...
3
11816
by: Gustavo L. Fabro | last post by:
Greetings! I'm testing VS 2005 Beta 2, and I've compiled a program that runs just fine on my computer (where VS is installed). I've tried to run this same program on another computer (after having installed MS .NET Framework 2.0 Beta 2 on it, from http://www.microsoft.com/downloads/details.aspx?FamilyId=7ABD8C8F-287E-4C7E-9A4A-A4ECFF40FC8E&displaylang=en), but got the following message:
0
3350
by: Ewart MacLucas | last post by:
generated some WMI managed classes using the downloadable extensions for vs2003 from mircrosoft downloads; wrote some test code to enumerate the physicall processors and it works a treat, but a question.. The code fails with the error that: "Additional information: COM object that has been separated from its underlying RCW can not be used." if I make a call to pc.Count before iterating though the objects. Dim d As New...
4
1007
by: Gabi | last post by:
Hi All, i create an application and its running fine on my machine. when i copy the *.exe file to other machine i got the following error: "The application failed to initialize properly(0xc0000135). click ok to terminate the application" is any body can advice how can i resolve my problem. Thanks
1
4365
by: Jason Bell | last post by:
I've been developing with the .net framework 2.0 since it's release with no problems. It has suddenly stopped working. When I try to execute any .net application a popup with the following error appears twice in succession: The application failed to initialize properly (0xc0000005). Click on OK to terminate the application. Event Viewer gives the following information:
4
2874
by: =?Utf-8?B?VkIgSm9ubmll?= | last post by:
I am at my witless end here, please help! I have an ASP.Net aspx web page, hosted on Windows Server 2003, that receives a query string with the path to an autocad drawing file selected from a web page hosted on a unix driven file server. The user wants to have this file converted to a pdf. My page takes the query string and turns it into a windows unc path, then I copy the file down to the web server and place it into a directory. This...
4
7875
by: DubSport | last post by:
I am trying to get my .net page to run a simple batch file on my IIS server. I want it to run with specified credentials. It appears to start the program cmd.exe as the correct user (shows up in the task mgr) but it just hangs there and will never finish. Looking in the event logs I see this: Application popup: cmd.exe - Application Error : The application failed to initialize properly (0xc0000142). Click on OK to terminate the...
2
1468
by: mickey22 | last post by:
Hi all, I have a console application in vc++ and I wanted to generate an executable of 32 bit on 64 bit machine (windows). I dont get any compile or linking errors, but when I try to run the excutable I get the error as : "The application failed to initialize properly (0XC000007b).Click on OK to terminate the application. " When i am running the same code on 32 bit machine it works fine. Could anyone give any suggestion why I am...
1
11185
by: =?Utf-8?B?RHRvd25EYWxl?= | last post by:
When I try to start programs like win media player Error pops up and says the application failed to initialize properly (0xc0000034). Click on OK to terminate the application. The same thing happens on a couple of other programs with the same message. Can anyone help me with this problem.
0
9517
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10428
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9030
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5435
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.