Not able to register a C++ executable
We have a C++ executable that is built in the release configuration. As a project requirement before running the same, it first needs to be registered using /RegServer option. And doing so, it fails and throws this application error: 'The application was unable to start correctly(0xc000007b)'
Whereas, in debug mode we can register the same successfully.
Actually, we have been facing some workflow issue with this exe when deployed to a test machine and therefore we configured this project to be able to debug in the release mode.
Please follow this link to get to know the config we did to debug in the release mode.
Environment: Visual Studio 2010
The 0xC000007B error often manifests when there is a bitness mismatch between an executable and any dependent dlls for which load-time linking is used (i.e., 32-bit .exe and 64-bit dlls, 64-bit .exe and 32-bit dlls. You should verify that the bitness of your release build and its DLL dependencies match.
Hi Sandeep Gupta,
There could be a mix of 32-bit and 64-bit of a Windows version and application. Specifically, you are trying to start an application that was designed to run on a 64-bit operating system. However, your computer is running 32-bit Windows. 32-bit applications cannot load 64-bit dlls, so confusing a 32-bit environment with a 64-bit environment can cause problems.
Thanks for your inputs.
However, i tried with matching the bitness for all the dependent DLLs as well and no luck as yet!
All of the DLL dependencies (other than system DLLs) need to be checked. For example, if executable A depends on DLL B and DLL B depends on DLLs C & D then you need to verify bitness match for B, C and D that are being accessd at load-time.
Sign in to comment