question

AshaDiggi-2801 avatar image
0 Votes"
AshaDiggi-2801 asked AshaDiggi-2801 answered

Application was unable to start correctly(0xc000007b)

Hi All,

I am using visual studio 2010 C++ and my project builds without any errors but when I run it, getting error message

"The application was unable to start correctly(0xc000007b)",

I tried with many options which I found in google but those are not helpful in my case.

Here I am going to list What I tried, please go through it and help me....

  1. Project properties->C/C++->General->Debug Information format->Program database for edit and continue(zi).

  2. Tools->options->Debugging->symbols->selecting Microsoft symbol servers-> and all modules .

  3. Tools->options->debugging->output window->Module load messages->off.
    97156-qwert.png

Regards,
Asha



c++
qwert.png (123.2 KiB)
· 15
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Provide some information about the application such as -

1) Console application? GUI application?
2) Building for 32-bit or 64-bit?
3) Any DLLs? If so, does the bitness of the DLLs match the bitness of the executable?

1 Vote 1 ·

Provide some information about the application such as -

1) Console application? GUI application?== It's GUI Application.
2) Building for 32-bit or 64-bit?==Building for 32 bit but using windows 7 64 bit operating system.
3) Any DLLs? If so, does the bitness of the DLLs match the bitness of the executable?==before getting this error,I am facing one more issue,that is "WDAPI.dll" missing error ,so I added 32 bit .dll file in my system path(C:/Windows/Syswow64) and 64 bit .dll file in (C:/Windows/system32)...


The .exe file is older one(that is 32 bit exe),I want to generate new exe...

97279-capture12.png


0 Votes 0 ·
capture12.png (17.9 KiB)

before getting this error,I am facing one more issue,that is "WDAPI.dll" missing error ,so I added 32 bit .dll file in my system path(C:/Windows/Syswow64) and 64 bit .dll file in (C:/Windows/system32)...


You should not place non-system DLLs in the Windows system folders. I suggest you remove whatever you copied into the System32 and SysWOW64 folders.

How did you determine the bitness of the two different versions of WDAPI.dll?

Place a copy of the 32-bit WDAPI.dll in the same folder that contains your 32-bit executable.

You also wrote -

Building for 32 bit but using windows 7 64 bit operating system.
The .exe file is older one(that is 32 bit exe),I want to generate new exe...

From what you have shown us it appears the debugger is trying to run the output from a build so referring to "older one" doesn't seem relevant.






1 Vote 1 ·
Show more comments

@AshaDiggi-2801

I suggest you could try to use dependency walker to test whether there is a problem between your application and its dependencies?

According to your description, the 32-bit application may try to load a 64-bit DLL.

1 Vote 1 ·

Hi,

I tried with dependency walker,I checked my .exe file ,
But as I am using dependency walker at first time I didn't understood much,
Here I am going to attach the screenshot could you please tell me what it's showing(Screenshot: Capture1),
And I have two wdapi1100.dll files ,trying to check their bitness , could you suggest me which one is 32 bit and 64 bit while seeing the screenshot(capture2 and capture3).

A

ccording to your description, the 32-bit application may try to load a 64-bit DLL.

No, The exe file is 32 bit and their is two dll file with name wdapi1100.dll and wdapi1100_32.dll, I will tell you in detail.
I have hole VC++ project which consists Source code,Debug folder(.exe file) and lib folder(in this lib folder their is two .dll files) , so now I am trying to run this project, So I checked .exe file bitness using Task manager->platform(screenshot: Capture),It's 32 bit exe.

0 Votes 0 ·

@AshaDiggi-2801
Refer to the answer at 34exited-with-code-107374170134-when-executing-a-c.html which shows how to use dumpbin.exe to determine the bitness of a DLL.


1 Vote 1 ·

97631-capture.png
97587-capture1.png
97602-capture2.png
97588-capture3.png


0 Votes 0 ·
capture.png (65.5 KiB)
capture1.png (109.1 KiB)
capture2.png (112.8 KiB)
capture3.png (103.7 KiB)
AshaDiggi-2801 avatar image
0 Votes"
AshaDiggi-2801 answered

Hi All,

Thanks to everyone who suggested me,

Yes now able to build and run application without any issues.

Thank you so much.

-Asha.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SimpleSamples avatar image
0 Votes"
SimpleSamples answered

[BEST FIX] – ‘The application was unable to start correctly (0xc000007b)’ error in Windows 10][1]


[1]: https://www.alphr.com/application-was-unable-to-start-correctly-0xc000007b

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.