Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi - .bpl plugins for application - problem while loading > 1 plugin

I'm using TJvPluginManager to build simple application with ability to load .bpl plugins. I have common interfaces declaration in "uIntfs.pas" file, which is kind of SDK ;)

The problem is, that if I try to load more than one plugin, the app throws an error:

Cannot load package 'test2'. It contains unit 'uIntfs,' which is also contained in package 'test'

It's quite obvious that BOTH bpls contain that file, however I need to make it work ...

Please help!


1 Answers

Put your uIntfs.pas into another BPL, and have your plug-ins both reference that BPL.

You'll have to do that for every unit that's common to both plug-ins.

like image 180
moobaa Avatar answered Jun 15 '26 10:06

moobaa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!