Error "the application was unable to start correctly 0xc00007b windows 10 64 bit" fix

I have sầu a client/VPS app which I have sầu been developing on a single PC. Now it needs two serial ports, so I borrowed a PC from a frikết thúc.

You watching: Error "the application was unable to start correctly 0xc00007b windows 10 64 bit" fix

When I build my ứng dụng và 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 start correctly (0xc000007b)".

Googling doesn"t bring up much, but seems lớn indicate that this is nothing Delphi specific và happens with other apps. It seems lớn be caused by calling inlớn a 32 bit DLL from a 64 bit app or vice versa.

both PCs are Windows 7, 64 bitboth have sầu Delphi Xe2 starter edition which can only handle 32 bitsThe app 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 lớn how khổng lồ trachồng this down?


windows delphi 64-bit
Share
Improve this question
Follow
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.3k9292 gold badges284284 silver badges513513 bronze badges
7
| Show 2 more comments

19 Answers 19


Active Oldest Votes
137
To start, I would suggest khổng lồ chạy thử whether there is a problem between your application and its dependencies using dependency walker


Share
Improve sầu this answer
Follow
answered May 8 "12 at 5:38
*

moxmox
5,76422 gold badges2020 silver badges3232 bronze badges
9
| Show 4 more comments
56
A load time dependency could not be resolved. The easiest way to debug this is khổng lồ use Dependency Walker. Use the Profile option to lớn get diagnostics output of the load process. This will identify the point of failure và should guide you lớn a solution.

The most common cause of this error is trying khổng lồ load a 64 bit DLL into a 32 bit process, or vice versa.


Share
Improve this answer
Follow
edited May 8 "12 at 8:06
answered May 8 "12 at 7:09
*

David HeffernanDavid Heffernan
575k4040 gold badges981981 silver badges13971397 bronze badges
1
Add a phản hồi |
12
It is a missing dll.Possibly, your dll that works with com ports have an unresolved dll dependence. You can use dependency walker & windows debugger. Check all of the mfc library, for example. Also, you can use nrCommlib - it is great components to work with com ports.


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

Alex.kononovAlex.kononov
12122 bronze badges
Add a bình luận |
12
I tried all the things specified here và 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 and 64-bit but had my PATH set to 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 to lớn have sầu the 32-bit DLLs before the 64-bit DLLs (they have the same names). And it worked. I am just adding it here for completeness.


Share
Improve sầu this answer
Follow
answered Jul 29 "14 at 17:23
*

unxnutunxnut
7,63622 gold badges2323 silver badges3636 bronze badges
Add a comment |
9
It has been mentioned in earlier answers that using dependency walker is the way to lớn 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 khổng lồ "profile" thực đơn và it will run the application and stop at the exact dll that"s cause the problem! I found out a 32bit dll was picked because of path và fixed it.

*


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

If you used Visual Studio lớn develop the app, 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 and x64 for 64 bit) of the Visual C++ Redistributable Package.

See more: Bài 1: Lửa Thử Vàng Gian Nan Thử Sức ”, Lửa Thử Vàng, Gian Nan Thử Sức

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

Here is a link 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 to lớn Control Panel -> Programs -> Programs & Features.

Here"s how I got this error và fixed it:

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

2) I installed the .exe cộ và the related files on a different computer we"ll hotline ComputerB.

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

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

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

See more: Cyka Blyat Là Gì ? Cyka Blyat Là Gì? Suka Blyat Là Gì

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