Fix "The Application Was Unable To Start (0Xc000007B)" In Windows

I have sầu a client/VPS tiện ích which I have sầu been developing on a single PC. Now it needs two serial ports, so I borrowed a PC from a friover.

Bạn đang xem: Fix "the application was unable to start (0xc000007b)" in windows

When I build my tiện ích & try khổng lồ run or debug it (whether in the Delphi IDE or from Windows File manager), it errors "The application was unable to lớn start correctly (0xc000007b)".

Googling doesn"t bring up much, but seems to lớn indicate that this is nothing Delphi specific & happens with other apps. It seems to be caused by calling into a 32 bit DLL from a 64 bit ứng dụng or vice versa.

both PCs are Windows 7, 64 bitboth have sầu Delphi Xe2 starter edition which can only handle 32 bitsThe ứng dụng runs fine on my PC, but not on my friend"sOther Delphi apps run just fine on both PCs

Can anyone give me a hint as khổng lồ how lớn traông xã this down?

windows delphi 64-bit
Improve this question
edited Dec 8 "16 at 11:05
Mawg says reinstate Monica
asked May 8 "12 at 3:08

Mawg says reinstate MonicaMawg says reinstate Monica
35.9k9393 gold badges288288 silver badges521521 bronze badges
| Show 2 more comments

19 Answers 19

Active sầu Oldest Votes
To start, I would suggest to lớn test whether there is a problem between your application & its dependencies using dependency walker

Improve this answer
answered May 8 "12 at 5:38

5,80422 gold badges2121 silver badges3232 bronze badges
| Show 4 more comments
A load time dependency could not be resolved. The easiest way khổng lồ debug this is to use Dependency Walker. Use the Protệp tin option khổng lồ get diagnostics output of the load process. This will identify the point of failure & should guide you khổng lồ a solution.

The most common cause of this error is trying to load a 64 bit DLL into a 32 bit process, or vice versa.

Improve sầu this answer
edited May 8 "12 at 8:06
answered May 8 "12 at 7:09

David HeffernanDavid Heffernan
581k4040 gold badges10031003 silver badges142014trăng tròn bronze badges
Add a bình luận |
It is a missing dll.Possibly, your dll that works with com ports have sầu an unresolved dll dependence. You can use dependency walker và windows debugger. Cheông xã all of the mfc library, for example. Also, you can use nrCommlib - it is great components to work with com ports.

Improve this answer
answered May 8 "12 at 11:58

12122 bronze badges
Add a bình luận |
I tried all the things specified here and found yet another answer. I had khổng lồ compile my application with 32-bit DLLs. I had built the libraries both in 32-bit & 64-bit but had my PATH set to lớn 64-bit libraries. After I recompiled my application (with a number of changes in my code as well) I got this dreaded error and struggled for two days. Finally, after trying a number of other things, I changed my PATH lớn have the 32-bit DLLs before the 64-bit DLLs (they have sầu the same names). And it worked. I am just adding it here for completeness.

Improve this answer
answered Jul 29 "14 at 17:23

7,78422 gold badges2424 silver badges3737 bronze badges
Add a phản hồi |
It has been mentioned in earlier answers that using dependency walker is the way khổng lồ go, in my case (my application keeps failing with the error code), dependency walker showed a few dll that are NOT relevant!

Finally figured out that I can run profiling by going to "profile" menu & it will run the application & stop at the exact dll that"s cause the problem! I found out a 32bit dll was picked because of path & fixed it.


Improve sầu this answer
answered Jul 25 "16 at 20:10
1,02711 gold badge1414 silver badges3131 bronze badges
Add a comment |
I experienced the same problem developing a client-VPS tiện ích using Microsoft Visual Studio 2012.

If you used Visual Studio lớn develop the tiện ích, you must make sure the new (i.e. the computer that the software was not developed on) has the appropriate Microsoft Visual C++ Redistributable Package. By appropriate, you need the right year & bit version (i.e. x86 for 32 bit & x64 for 64 bit) of the Visual C++ Redistributable Package.

Xem thêm: Video Cách Hôn Cậu Nhỏ Điêu Luyện "Hơn Cả" Phim Khiêu Dâm, Video Cách Hôn Cậu Nhỏ

The Visual C++ Redistributable Packages install run-time components that are required to run C++ applications built using Visual Studio.

Here is a liên kết to lớn the Visual C++ Redistributable for Visual Studio năm ngoái .

You can kiểm tra what versions are installed by going khổng lồ Control Panel -> Programs -> Programs and Features.

Here"s how I got this error & fixed it:

1) I developed a 32 bit application using Visual Studio 2012 on my computer. Let"s gọi my computer ComputerA.

2) I installed the .exe cộ & the related files on a different computer we"ll điện thoại tư vấn ComputerB.

3) On ComputerB, I ran the .exe cộ & got the error message.

4) On ComputerB, I looked at the Programs và Features và didn"t see Visual C++ 2012 Redistributable (x64).

5) On ComputerB, I googled for Visual C++ 2012 Redistributable & selected and installed the x64 version.

6) On ComputerB, I ran the .exe on ComputerB và did not receive sầu the error message.

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Sơ đồ đường sắt trên cao hà nội

  • Kiểm tra ngày kích hoạt xiaomi

  • Nâng cấp android 7.0 cho oppo f1s

  • Thủ môn xuất sắc nhất việt nam

  • x

    Welcome Back!

    Login to your account below

    Retrieve your password

    Please enter your username or email address to reset your password.