Delphi – Loading BDE BPL from another directory

bdebpldelphidelphi-2010

Using Delphi 2010 and a patched version of the BDE I run into a problem loading the BDERTL140.bpl.

Loading DCLBDE140.bpl from another directory then usual works fine. Only when I want to load the BDERTL140.bpl, it always tells me that it has been loaded already from the Windows system directory.

Which packages load the BDERTL140.pbl, and how could I have them load my patched version instead of the original? I would hate to resort to overwriting the original.

Best Answer

To get a list of loaded libraries including the complete paths you can run your application under the Dependency Walker, it will output a lot of important information.

You can also use it to show all static dependencies of various DLLs and BPLs, so you should be able to find the first module that forces BDERTL140.bpl to be loaded. You should try to load your patched version before that.

Related Topic