Duplicate resources

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
jredoc
Newbie
Newbie
Posts: 7
Joined: Mon Mar 14, 2011 12:00 am

Duplicate resources

Post by jredoc » Mon Feb 27, 2012 10:33 pm

Hello

In moving from Delphi XE to Delphi XE2 (both in a Windows 7 64 bit OS), I am now receiving multiple duplicate resource errors for TeeResou.res.

[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID TBUTTONCOLOR; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID TBUTTONGRADIENT; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID TBUTTONPEN; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID TCOMBOFLAT; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID TEEARROWDOWN; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID TEEARROWUP; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID TIMAGEFILTERED; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID TTEEINSPECTOR; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID TTEEPREVIEWPANEL; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 12 (CURSOR GROUP), ID TEE_CURSOR_HAND; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.

In searching for the TeeResou.res file there are 7, none of which did I create manually.

Suggestions?

TIA

John

jredoc
Newbie
Newbie
Posts: 7
Joined: Mon Mar 14, 2011 12:00 am

Re: Duplicate resources

Post by jredoc » Wed Feb 29, 2012 4:19 am

Hello
In continuing to investigate this issue of duplicate resources, I have
a) uninstalled TeeChart Pro and RBuilder and
b) searched for all innstances of tee*.* and deleted all references.
c) reinstalled TeeChart, binary file first and then the source file
d) reinstalled RBuilder

Duplicate resource compiler error messages persist.

I would certainly hope that at least tech support would have a suggestion?"

TIA

John

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Duplicate resources

Post by Yeray » Thu Mar 01, 2012 10:33 am

Hi John,

Excuse us for the delayed reply. We haven't forgotten you. We are investigating it and we'll be back to you asap.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Duplicate resources

Post by Yeray » Thu Mar 01, 2012 10:48 am

Hi,

I find 6 copies of the TeeResou.res in my RAD XE2 installation. Concretely at:
  • \Embarcadero\RAD Studio\9.0\lib\osx32\debug
  • \Embarcadero\RAD Studio\9.0\lib\osx32\release
  • \Embarcadero\RAD Studio\9.0\lib\win32\debug
  • \Embarcadero\RAD Studio\9.0\lib\win32\release
  • \Embarcadero\RAD Studio\9.0\lib\win64\debug
  • \Embarcadero\RAD Studio\9.0\lib\win64\release
And 4 in the TeeChart Pro v2011.04 installation, at:
  • \Delphi16.ios\Lib
  • \Delphi16.osx32\Lib
  • \Delphi16.win32\Lib
  • \Delphi16.Win64\Lib
Where are the 7 you find?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

jredoc
Newbie
Newbie
Posts: 7
Joined: Mon Mar 14, 2011 12:00 am

Re: Duplicate resources

Post by jredoc » Fri Mar 02, 2012 1:45 pm

Hello

After uninstalling TeeChart Pro, removing all references to Tee*.* that applied to TeeChart and then reinstalling TeeChart Pro I now have 5 references to TeeResou.res.

- c:\delphi\components\TeeChart\Delphi16.ios\lib
- c:\delphi\components\TeeChart\Delphi16.osx32lib
- c:\delphi\components\TeeChart\Delphi16.win32\lib
- c:\delphi\components\TeeChart\Delphi16.win64\lib
- c:\delphi\components\TeeChart\Sources

However, the compiler given 10 duplicate file error messages

[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID TBUTTONCOLOR; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID TBUTTONGRADIENT; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID TBUTTONPEN; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID TCOMBOFLAT; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID TEEARROWDOWN; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID TEEARROWUP; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID TIMAGEFILTERED; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID TTEEINSPECTOR; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID TTEEPREVIEWPANEL; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.
[DCC Hint] H2161 Warning: Duplicate resource: Type 12 (CURSOR GROUP), ID TEE_CURSOR_HAND; File C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource kept; file C:\Delphi\Components\TeeChart\Delphi16.win32\Lib\TeeResou.res resource discarded.

Suggestions?

John

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Duplicate resources

Post by Yeray » Fri Mar 02, 2012 2:07 pm

Hi John,

Errors? They are just warnings, aren't they?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

jredoc
Newbie
Newbie
Posts: 7
Joined: Mon Mar 14, 2011 12:00 am

Re: Duplicate resources

Post by jredoc » Fri Mar 02, 2012 7:50 pm

Yes, they are actually warnings and not errors. I misspoke.

Having not had these warnings prior to Delphi XE2, I am concerned about the etiology of the warning and a possible mechanism to eliminate them.

TIA

John

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Duplicate resources

Post by Yeray » Tue Mar 06, 2012 12:50 pm

Hi John,

When are you exactly getting these warnings, when running TeeRecompile or when compiling an application that uses TeeChart?
It would be helpful if you could give us some step-by-step instructions to reproduce the issue here.
According tot he warning messages, the resource kept and the resource discarded is exactly the same, curious.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

jredoc
Newbie
Newbie
Posts: 7
Joined: Mon Mar 14, 2011 12:00 am

Re: Duplicate resources

Post by jredoc » Wed Mar 07, 2012 3:17 am

Hello Yeray

Yes, I also find the error messages curious. It is because of these duplication messages that I
a) uninstalled both Report Builder 4.03 and TeeChart Pro 2011.04.41118
b) after uninstalling I then removed all references to Tee*.* that pertained to Tee Chart prior to reinstalling both programs.

Unfortunately, uninstalling and reinstalling did not resolve the problem. The errors occur in the IDE when compiling a program with units that contain TeeChart components. There appear to be no run time issues.

When I previously uninstalled TeeChart, were there other references that I should have removed, that would not have fallen within the Tee*.* search parameters? This development machine was initially a Delphi XE machine. Delphi XE was removed and Delphi XE2 installed.

Suggestions?

TIA

John

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Duplicate resources

Post by Yeray » Mon Mar 12, 2012 4:49 pm

Hi John,
jredoc wrote:When I previously uninstalled TeeChart, were there other references that I should have removed, that would not have fallen within the Tee*.* search parameters? This development machine was initially a Delphi XE machine. Delphi XE was removed and Delphi XE2 installed.
You usually don't need to clean it so deeply. As you probably know, the TeeChart Pro installer (and the same for the Source version as both them actually run the same TeeInstall utility) backups the files from the TeeChart Standard version shipped with the IDE. You only have to manually manipulate *tee* files in the IDE installation if you are restoring the TeeChart Standard package or if you are building/installing a package integrating TeeChart (like TeeChart for QuickReport as explained in the QuickReport article)
jredoc wrote:Suggestions?
I'd say it has to be something related to the paths or something quite particular you might be doing in your application because I see no warnings here in a new simple application with just a chart in the form.
I'd check the paths once again and try a new simple application. If it reproduces the problem, please send it to us so we can reproduce the issue here.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

StratnVox
Newbie
Newbie
Posts: 2
Joined: Mon Nov 21, 2011 12:00 am

Re: Duplicate resources

Post by StratnVox » Sat Aug 25, 2012 12:05 am

I was getting the same list of hints and I have found the source of the problem that I was having.

Try this:
Go to your projects Options and then click on "Delphi Compiler", the heading.
Under "Unit Scope Name", check to see if you have both "VCLTee" and "FMXTee". You should only have one of these, not both.

I can only guess that I managed to get both included during my project upgrade to XE2 or by somehow clicking on an FMX component while editing.

Since Embarcadero allows for mixed projects (those containing both VCL and FMX on WIn32 and Win64), my suggestion is that Steema look at ways of isolating this duplication of resources since, I believe, the designer uses them.

I have spent way too many hours chasing this annoyance, but I'm relieved to have found the source of the problem as it relates to me. I hope it's also yours, John.

Trevor

WarmBooter
Newbie
Newbie
Posts: 33
Joined: Thu Mar 18, 2004 5:00 am
Location: Brasil
Contact:

Re: Duplicate resources

Post by WarmBooter » Tue May 10, 2016 1:17 pm

I'm having a similar problem with TeeChart 2016.17 and Berlin:

[dcc32 Hint] H2161 Warning: Duplicate resource: Type 2 (BITMAP), ID TPIESERIES; File C:\RAD\Berlin\Comps\TeeChart\Delphi24\Delphi24.win32\Lib\TeeBmps.res resource kept; file C:\RAD\Berlin\Comps\TeeChart\Delphi24\Delphi24.win32\Lib\TeeBmps.res resource discarded.

I have checked the unit scope name and there is only the VCLTee there.

Any other ideas?

Carlos

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Duplicate resources

Post by Yeray » Wed May 11, 2016 8:16 am

Hello Carlos,

I've tried TeeChart v2016.18 with RAD 10.1 Berlin and I find no errors or warnings in a new simple "VCL Forms Application - C++ Builder" with just a chart on the form.
Do you find any error with a new simple project or only in an old one?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

WarmBooter
Newbie
Newbie
Posts: 33
Joined: Thu Mar 18, 2004 5:00 am
Location: Brasil
Contact:

Re: Duplicate resources

Post by WarmBooter » Wed May 11, 2016 10:57 am

No, a simple project with just a TChart component doesn't show the problem.

I spent the last 2 days searching for the reason why this happens when I compile my ERP in Berlin, with no lucky.

The same ERP code compiled in Seattle doesn't present the problem.

I also deleted all the teebmps.res keeeping only the one at the win32 directory, but it didn't help either.

I'm using 2016.17 and I guess installing 2016.18 will not help, since reading the release notes, it says it was just a fix for the pie chart.

Any ideas?

Carlos

WarmBooter
Newbie
Newbie
Posts: 33
Joined: Thu Mar 18, 2004 5:00 am
Location: Brasil
Contact:

Re: Duplicate resources

Post by WarmBooter » Wed May 11, 2016 11:20 am

Yeray,

I found the problem. It was related to another component that was also referencing Teebmps.res. When I had TChartEditor and that other component in the same project, the duplicate resources warning was raised.

Thanks!
Carlos

Post Reply