Duplicate Resource

General TRichView support forum. Please post your questions here
Post Reply
don709
Posts: 13
Joined: Sun Apr 22, 2012 4:26 pm

Duplicate Resource

Post by don709 »

Hello

Since my last update (TRichView16Setup16.8.6) my XE7 compiler shows this line 10 times. Any idea on how to make it stop.

[dcc32 Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID BMP0; File D:\myProgramFiles\Delphi Library\TRichView\RichViewActions\Source\RulerSkins.RES resource kept; file D:\myProgramFiles\Delphi Library\TRichView\RichViewActions\Source\RulerSkins.RES resource discarded.

Weird how it can keep and discard the same file at the same time... 10 times

Doesn't stop the program from compiling it's just somewhat annoying.

Cheers
Don
Sergey Tkachenko
Site Admin
Posts: 17521
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

The new version renames Ruler.pas to RVRulerBase.pas (it was done to avoid conflicts with other third-party components).
If you did not remove a reference to Ruler unit from your project, both Ruler and RVRulerBase units are included in your project.
Delete Ruler.pas and Ruler.dcu from your hard drive (they are in <TRichView Dir>\RichViewActions\Source\), and change "Ruler" to "RVRulerBase" in "uses" of units of your project.
don709
Posts: 13
Joined: Sun Apr 22, 2012 4:26 pm

Duplicate Resource

Post by don709 »

When I delete RVRuler from the hard drive SclRVRuler won't compile
Sergey Tkachenko
Site Admin
Posts: 17521
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Make sure that you updated ScaleRichView as well.
In the new version, SclRVRuler.pas refers to RVRulerBase, not to Ruler unit.

Please note that the recent ScaleRichView installer contained an older version than it was announced, we just uploaded a fixed version.
Post Reply