You are not logged in.
I just tried to update my mORMot source today and when I attempt to compile it in Delphi 2010 it complains the following:
[DCC Error] SynCommons.pas(12324): E2137 Method 'TerminatedSet' not found in base class
I'm unsure what to do to make it work.
Regards,
Nick
*UPDATE - Solved*
I had to comment out the HASTTHREADTERMINATESET line in Synopse.inc. Line #429
{$if CompilerVersion >= 21.0}
// Delphi 2010/XE: Reduce EXE size by disabling much RTTI
{$define ISDELPHI2010}
{$define ISDELPHI2010_OR_FPC_NEWRTTI}
{$define FPC_OR_UNICODE}
{$define HASTTHREADSTART}
// {$define HASTTHREADTERMINATESET}
{$define HASINTERFACEASTOBJECT}
{$ifdef NEWRTTINOTUSED}
{$WEAKLINKRTTI ON}
{$RTTI EXPLICIT METHODS([]) PROPERTIES([]) FIELDS([])}
{$endif NEWRTTINOTUSED}
{$ifend}
Last edited by NJL (2017-11-03 20:01:23)
Offline
Same error, same solution.
I've searched my dev environment, Delphi XE, found no method named TThread.TerminateSet.
I've searched that method on EMB api wiki, and it was first seen on version XE2.
http://docwiki.embarcadero.com/Librarie … dset&go=Go
I think we should make a more accurate condition of CompilerVersion.
By the way XE2 CompilerVersion is 23.
Offline
Please check https://synopse.info/fossil/info/97ef0ca00a
Offline
Thx ab.
That patch works for me.
Offline