views:

298

answers:

1

Hi, 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!

+7  A: 

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.

moobaa
I was afraid of that ... it will be quite inconvinient to do so, as I'm changing the SDK a lot ... :/ is there a way for auto-rebuilding the package?
moobaa