473,804 Members | 2,812 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 12661
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
11818
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
3351
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
4366
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
2877
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
1469
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
11186
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
9705
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9576
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,...
1
10311
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10074
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9138
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
7613
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
6847
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
5516
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...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.