Page 1 of 2
Duplicate resources
Posted: Mon Feb 27, 2012 10:33 pm
by 16558763
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
Re: Duplicate resources
Posted: Wed Feb 29, 2012 4:19 am
by 16558763
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
Re: Duplicate resources
Posted: Thu Mar 01, 2012 10:33 am
by yeray
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.
Re: Duplicate resources
Posted: Thu Mar 01, 2012 10:48 am
by yeray
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?
Re: Duplicate resources
Posted: Fri Mar 02, 2012 1:45 pm
by 16558763
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
Re: Duplicate resources
Posted: Fri Mar 02, 2012 2:07 pm
by yeray
Hi John,
Errors? They are just warnings, aren't they?
Re: Duplicate resources
Posted: Fri Mar 02, 2012 7:50 pm
by 16558763
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
Re: Duplicate resources
Posted: Tue Mar 06, 2012 12:50 pm
by yeray
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.
Re: Duplicate resources
Posted: Wed Mar 07, 2012 3:17 am
by 16558763
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
Re: Duplicate resources
Posted: Mon Mar 12, 2012 4:49 pm
by yeray
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.
Re: Duplicate resources
Posted: Sat Aug 25, 2012 12:05 am
by 16460798
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
Re: Duplicate resources
Posted: Tue May 10, 2016 1:17 pm
by 9231501
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
Re: Duplicate resources
Posted: Wed May 11, 2016 8:16 am
by yeray
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?
Re: Duplicate resources
Posted: Wed May 11, 2016 10:57 am
by 9231501
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
Re: Duplicate resources
Posted: Wed May 11, 2016 11:20 am
by 9231501
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