#1 2016-10-11 06:02:48

daisutao
Member
Registered: 2015-05-08
Posts: 17

Last Modify bring a bug!

Now Most of demos can not compile.

Error code at unit SynEcc.pas:

function TECDHEProtocol.Clone: IProtocol;
begin
  result := CreateFrom(self);
end;

Offline

#2 2016-10-11 07:09:11

jaclas
Member
Registered: 2014-09-12
Posts: 215

Re: Last Modify bring a bug!

I confirm this bug.

[dcc32 Error] SynEcc.pas(3251): E2382 Cannot call constructors using instance variables

Offline

#3 2016-10-11 07:37:38

emaxx
Member
Registered: 2014-07-03
Posts: 18

Re: Last Modify bring a bug!

Offline

#4 2016-10-11 07:58:26

oz
Member
Registered: 2015-09-02
Posts: 98

Re: Last Modify bring a bug!

I don't have compiler at hand right now, but try if following change helps to get sources compiled:

function TECDHEProtocol.Clone: IProtocol;
begin
  result := TECDHEProtocol.CreateFrom(self);
end;

Offline

#5 2016-10-11 09:06:41

daisutao
Member
Registered: 2015-05-08
Posts: 17

Re: Last Modify bring a bug!

not only one bug, demo Project31SimpleEchoServer raise exception:

Debugger Exception Notification
---------------------------
Project Project31SimpleEchoServer.exe raised exception class ECrtSocket with message 'SockRecvLn 10060 WSAETIMEDOUT'.

Offline

#6 2016-10-11 09:32:13

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

Re: Last Modify bring a bug!

Please check http://synopse.info/fossil/info/addc9aa89e
It worked well on older versions of the protocol!
wink

In fact, TECDHEProtocol.CreateFrom is not enough.

Offline

#7 2016-10-11 10:02:50

oz
Member
Registered: 2015-09-02
Posts: 98

Re: Last Modify bring a bug!

ab wrote:

In fact, TECDHEProtocol.CreateFrom is not enough.

Yeah, I know, but at least it fixed the compilation issue smile

Offline

#8 2016-10-11 13:06:10

daisutao
Member
Registered: 2015-05-08
Posts: 17

Re: Last Modify bring a bug!

ok now!

Last edited by daisutao (2016-10-12 00:33:46)

Offline

Board footer

Powered by FluxBB