It seems I don't understand how I should configure the library folders in Delphi.
I created a package, I installed it in the IDE, I can drop it in a form and the project compiles. Then, I execute and I get an exception saying that one of the classes I use in one of the units of the package can not be found.
How is this possible? I can see the dcu files of the package.
The folder set up is like this:
In the library paths, I have the folders of the folders of the .pas files (source)
The .bpl file exists in the $(BDSCOMMONDIR)\Bpl directory
The .dcu files exist and I have added the folder in the debug dcu path
It is a visual component (as I can drop it in a form) and the exemption is caused by a class (non-visual)
The exact error message is:
Project raised ClassNotFound with message 'class tTopBarontrol' not found"
UPDATE: I have totally removed the class which caused the error and deleted all the files. Then rebuilt the component and installed it again and for some reasons I still get the same exception with the same class name.
Looks like something is stuck in the compiler and this component.