Delphi 2006 on project load error

General TRichView support forum. Please post your questions here
Post Reply
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Delphi 2006 on project load error

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Post by Marsianin »

Yes, RVActions are installed too.
But why this happens ? And I tryed to answer No too...not always everything works fine.
Ar4i
Posts: 30
Joined: Tue Apr 24, 2007 7:03 am

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply