i got trouble running exe file on runtime package delphi xe2

728 Views Asked by At

I tried to make the program Delphi XE2 with dynamic runtime package. when I compile it no problem, but when on the run with F9 program just compiled and created exe file but it did not run. what is wrong with my configuration?

configuration that I use

  • Link with runtime package set True -- value from all configuration 32 bit windows platform set True

  • runtime package inherited set True

NB "When Link with runtime package" set to false, it can run normally.

1

There are 1 best solutions below

0
On

The behaviour you describe is what happens when the .bpl files cannot be found. if you run the .exe outside the IDE you will get an error message to that effect. For some reason that error message does not show when running from within the IDE. Note that it's not enough even to use the Run Without Debugging option. You have to start the executable outside the IDE, for example by double clicking on the .exe file in an explorer window.

Probably the most effective way to debug this to work out which dependencies are failing is with Dependency Walker. Load up your executable and debug its startup from the Profile menu.

Solve the problem by making sure that the .bpl files can be found. Make sure they are on the DLL search path. The best way to do that is to place them alongside the .exe file.