Page 1 of 1

Delphi 2006 on project load error

Posted: Wed Apr 26, 2006 5:59 pm
by Marsianin
TRichView component always shows error message twice when BDS2006 opens my project with RichViewEdit in it:
Can't load package C:\Documents and Settings\Administrator\My Documents\Borland Studio Projects\Bpl\RVPkg2006.bpl.
Component TRVStyle can't be registered by package rvpkg2006.bpl because it has already been registered by package rvpkg2006.bpl
Do you want to attempt to load this package the next time a project is loaded?
[Yes] [No]
I'm answering Yes and everything works fine. BDS2006 SP2

I have a lot of other 3rd party components - everyone loads fine. But TRichView always shows this error.

Posted: Thu Apr 27, 2006 6:19 pm
by Sergey Tkachenko
Probably, it's related to using run-time dependent packages (RichViewActions).
As far as I know, it's better to answer "No", and Delphi will not ask you again, but everything will be loaded fine.

Posted: Thu Apr 27, 2006 7:08 pm
by Marsianin
Yes, RVActions are installed too.
But why this happens ? And I tryed to answer No too...not always everything works fine.

Posted: Fri Apr 03, 2009 9:14 am
by Ar4i
Sorry for resurrecting this old topic, but I didn't find any viable solution anywhere, so this might help someone.

I recently had to transfer a project from Delphi 7 to 2007 and got exactly the same error. After some experimenting I found the solution - just add RVPkgD?.dcp to dependencies of RVActionsD?.BPL project and rebuild.

It seems that RVActions uses RVActionRun which uses RVPkg so Delphi tires to load RVPkg for the second time when loading RVActionRun package, but if it is included in dependencies of RVActions it will no longer try to load it twice.

Posted: Sat Apr 04, 2009 10:35 am
by Sergey Tkachenko
You use very old version of RichViewActions.
In the new version, RichViewActions* packages are used instead of RVActions* and RVActionsRun*.
Please update your version.