Page 1 of 1

Duplicate Resource

Posted: Thu Aug 18, 2016 10:26 am
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

Posted: Thu Aug 18, 2016 8:29 pm
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.

Duplicate Resource

Posted: Wed Aug 24, 2016 9:59 am
by don709
When I delete RVRuler from the hard drive SclRVRuler won't compile

Posted: Wed Aug 24, 2016 11:00 am
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.