There are many compiler warnings related to string handling when building and installing TeeChart 8.04 into Delphi 2009.
At least following types of warnings are generated from various places:
Warning: W1044 Suspicious typecast of string to PAnsiChar
Warning: W1050 WideChar reduced to byte char in set expressions. Consider using 'CharInSet' function in 'SysUtils' unit.
Warning: W1057 Implicit string cast from 'AnsiString' to 'string'
Warning: W1058 Implicit string cast with potential data loss from 'string' to 'ShortString'
In light of these we are a bit worried whether some of these signify real remaining issues in string handling. We would gladly see these dealt with as we are preparing the migration to D2009.
TeeChart 8.04 Compiler Warnings in Delphi 2009
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi tsiipola,
We haven't found any issue with those warnings so far. Anyway, we will try to enhance this for next releases.
We haven't found any issue with those warnings so far. Anyway, we will try to enhance this for next releases.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: TeeChart 8.04 Compiler Warnings in Delphi 2009
These compiler warnings seems to be still present in TeeChart 8.06. It would seem quite unlikely that they would not be associated with any potential problems whatsoever, so I would very gladly see these addressed.
Re: TeeChart 8.04 Compiler Warnings in Delphi 2009
Hi,
I also see many compiler warnings with TeeChart 8.06 and Delphi 2010.
It would be great if they can be removed... I hardly see my own warnings among all these.
Thank you
I also see many compiler warnings with TeeChart 8.06 and Delphi 2010.
It would be great if they can be removed... I hardly see my own warnings among all these.
Thank you
Code: Select all
[DCC Warnung] TeEngine.pas(8061): W1057 Implizite String-Umwandlung von 'AnsiString' zu 'string'
[DCC Warnung] TeeChartGrid.pas(868): W1057 Implizite String-Umwandlung von 'ShortString' zu 'string'
[DCC Warnung] TeeExport.pas(1165): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'AnsiString'
[DCC Warnung] TeeExport.pas(1178): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'AnsiString'
[DCC Warnung] TeeExport.pas(1196): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'AnsiString'
[DCC Warnung] TeeStore.pas(1243): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'ShortString'
[DCC Warnung] TeeStore.pas(1249): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'ShortString'
[DCC Warnung] TeeStore.pas(1255): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'ShortString'
[DCC Warnung] TeeStore.pas(1261): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'ShortString'
[DCC Warnung] TeeStore.pas(1315): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'ShortString'
[DCC Warnung] TeeStore.pas(1321): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'ShortString'
[DCC Warnung] TeeStore.pas(1408): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'ShortString'
[DCC Warnung] GDIPOBJ.pas(148): W1010 Methode 'Equals' verbirgt virtuelle Methode vom Basistyp 'TObject'
[DCC Warnung] GDIPOBJ.pas(498): W1010 Methode 'Equals' verbirgt virtuelle Methode vom Basistyp 'TObject'
[DCC Warnung] TeeGDIPlus.pas(811): W1000 Symbol 'ByteToCharLen' ist veraltet : 'Use ElementToCharLen.'
[DCC Warnung] TeeRose.pas(451): W1057 Implizite String-Umwandlung von 'ShortString' zu 'string'
[DCC Warnung] TeeURL.pas(151): W1057 Implizite String-Umwandlung von 'AnsiString' zu 'string'
[DCC Warnung] TeeURL.pas(350): W1050 WideChar in Set-Ausdrücken auf ByteChar verkürzt. Ziehen Sie die Verwendung der Funktion 'CharInSet' aus der Unit 'SysUtils' in Betracht.
[DCC Warnung] TeeURL.pas(372): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'AnsiString'
[DCC Warnung] TeeURL.pas(403): W1057 Implizite String-Umwandlung von 'AnsiString' zu 'string'
[DCC Warnung] TeeURL.pas(404): W1044 Bedenkliche Typumwandlung von string in PAnsiChar
[DCC Warnung] TeeURL.pas(408): W1057 Implizite String-Umwandlung von 'AnsiString' zu 'string'
[DCC Warnung] TeeURL.pas(522): W1044 Bedenkliche Typumwandlung von string in PAnsiChar
[DCC Warnung] TeeURL.pas(620): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'AnsiString'
[DCC Warnung] TeeTranslate.pas(339): W1050 WideChar in Set-Ausdrücken auf ByteChar verkürzt. Ziehen Sie die Verwendung der Funktion 'CharInSet' aus der Unit 'SysUtils' in Betracht.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: TeeChart 8.04 Compiler Warnings in Delphi 2009
Hi Timo,
Yes, we are aware of that and we will try to fix as many warnings and hints as possible for next releases.
Yes, we are aware of that and we will try to fix as many warnings and hints as possible for next releases.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: TeeChart 8.04 Compiler Warnings in Delphi 2009
Hi Timo,
I have fixed all warnings possible. I couldn't fix some W1058 because of what's described here:
http://docwiki.embarcadero.com/RADStudi ... 8Delphi%29
http://chee-yang.blogspot.com/2008/10/d ... icode.html
I have fixed all warnings possible. I couldn't fix some W1058 because of what's described here:
http://docwiki.embarcadero.com/RADStudi ... 8Delphi%29
http://chee-yang.blogspot.com/2008/10/d ... icode.html
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |