#1 2015-07-08 10:18:12

miab3
Member
From: Poland
Registered: 2014-10-01
Posts: 188

UTF8ContentNumberType aned Delphi XE2

@Aranud,

Why for Delphi XE2-32 and mORMot 1.18.1617 gets an error?:

[DCC Error] SynSelfTests.pas(5232): E2010 Incompatible types: 'PUTF8Char' and 'PAnsiChar'
--> Check(UTF8ContentNumberType('null')=sftUnknown);

In Delphi XE7-32 does not have this problem.

Michal

Offline

#2 2015-07-08 11:18:42

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: UTF8ContentNumberType aned Delphi XE2

Buggy XE2?

Offline

#3 2015-07-08 11:32:51

miab3
Member
From: Poland
Registered: 2014-10-01
Posts: 188

Re: UTF8ContentNumberType aned Delphi XE2

In Delphi XE3 also this error occurs.

Michal

Offline

#4 2015-07-14 15:58:39

miab3
Member
From: Poland
Registered: 2014-10-01
Posts: 188

Re: UTF8ContentNumberType aned Delphi XE2

@Aranud,

Additionally, came the error:
[DCC Error] SynSelfTests.pas(3341): E2010 Incompatible types: 'PUTF8Char' and 'PAnsiChar'
--> check(not JsonPropNameValid(#0));

mORMot 1.18.1635 Delphi XE2-32, Delphi XE3-32

Offline

#5 2015-07-14 16:45:12

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: UTF8ContentNumberType aned Delphi XE2

Compiler regression.
No problem with Delphi 6/7/2007, or XE6/XE8 AFAIK...

Offline

#6 2015-07-14 18:31:19

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: UTF8ContentNumberType aned Delphi XE2

Offline

#7 2015-07-14 18:42:07

miab3
Member
From: Poland
Registered: 2014-10-01
Posts: 188

Re: UTF8ContentNumberType aned Delphi XE2

New bug disappeared but this error still occurs in Delphi XE2-32, XE3-32 (mORMot 1.18.1637):
[DCC Error] [DCC Error] SynSelfTests.pas(5245): E2010 Incompatible types: 'PUTF8Char' and 'PAnsiChar'
--> Check(UTF8ContentNumberType('null')=sftUnknown);
... and the next 15 line.

Michal

Last edited by miab3 (2015-07-14 18:45:02)

Offline

#8 2015-07-15 08:30:02

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: UTF8ContentNumberType aned Delphi XE2

Offline

#9 2015-07-15 13:44:38

fabriciocolombo
Member
Registered: 2015-07-15
Posts: 2

Re: UTF8ContentNumberType aned Delphi XE2

It's working now for XE2-32, but still fails for XE2-64

[DCC Error] SynSelfTests.pas(3320): E2010 Incompatible types: 'PUTF8Char' and 'PAnsiChar'
  --> Check(not IdemPropNameUSameLen('abcD','ABcF',4));
[DCC Error] SynSelfTests.pas(3321): E2010 Incompatible types: 'PUTF8Char' and 'PAnsiChar'
  --> Check(not IdemPropNameUSameLen('abcD','ABcFG',4));
[DCC Error] SynSelfTests.pas(3322): E2010 Incompatible types: 'PUTF8Char' and 'PAnsiChar'
  --> Check(IdemPropNameUSameLen('abcDe','ABcdE',5));

Offline

#10 2015-07-15 14:00:25

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: UTF8ContentNumberType aned Delphi XE2

Such a joking Delphi compiler!
smile

See http://synopse.info/fossil/info/f2c7a5251b

Offline

#11 2015-07-15 14:35:20

fabriciocolombo
Member
Registered: 2015-07-15
Posts: 2

Re: UTF8ContentNumberType aned Delphi XE2

It's working now for XE2 both 32bit and 64bit.
Thanks

Offline

Board footer

Powered by FluxBB