打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Delphi: Can't load package

Delphi: Can't load package

Posted on 2016-07-01
3
460 Views
Last Modified: 2016-07-06
I have just started using Delphi 10.1 Berlin on a new workstation and am gradually migrating my own packages and utilities from my soon-to-be-retired Delphi 10 Seattle PC.

Most of my packages have compiled and installed just fine, but two of them compile and then refuse to install. No changes have been made to their source code since being copied from the Delphi 10 machine.

The error I get when attempting to install is rather confusing:
"Can't load package MyPackageName.bpl. The specified module could not be found."

A few seconds before clicking on Install in the project's context menu, Delphi compiled the package and created MyPackageName.bpl, so I presume this cannot be the subject of the statement "The specified module could not be found", can it?

Delphi has just created the BPL file and a quick look in Windows Explorer shows it is in the expected location. So, what is the "specified module"? How can I find out what it is that is missing?

I get exactly the same error if I attempt to use "Install Packages..." from the Component menu.
Question by:plumothy
  • 2
3 Comments
 
Active today

Expert Comment

by:Jackie Man
ID: 41686113
What is the os of your new workstation, same  as your old one?
 
Active today

Accepted Solution

by:
ID: 41686251
I have now solved this issue. As I suspected, the wording of the Delphi error message is very misleading. It is not the package (BPL) which cannot be found, is was one of the files that it depends on, a DLL which I had not yet installed on the new machine.
I discovered this using Dependency Walker (to actually find out which DLL was missing) and Process Monitor (to show me where Delphi was looking for the file).
Once I put the missing DLL in the right place, it was all OK.
It would have saved me a lot of time if Delphi had mentioned the name of the missing file in the error message (rather than "specified module").
So, thanks Jackie Man for your initial response.

The main point here is that the file mentioned in the error message is NOT the one that is missing!
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
关于提示can''t load package ''xxx.bpl.'' 错误问题的解决方
以Delphi Package架构的应用程序开发(转)
无痛使用Delphi Package
delphi中的“build with runtime package”编译选项(快乐的菜鸟)
插件框架之BUILD WITH RUNTIME PACKAGE选项
yum
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服