Lazarus 1.8.4 under Mac OS X 10.13.3 / Xcode 9.4.1

When i try to install RemObjects Elements - 10.0.0.2289
i always get the Error in uROSynapseSuperHttpChannel Line 112:
uROSynapseSuperHttpChannel.pas(115,28) Error: Incompatible types: got “TThreadID” expected “LongInt”

function TROSynapseSuperHTTPChannel.CreateWorkerThread: TThread;
begin
Result := inherited CreateWorkerThread;
fWorkerThreadId := Result.ThreadID;
end;

How can dis be solved?
Shalom
Manfred

Synapse library is supported only on Windows platforms and it wasn’t supported/tested in MacOS/Linux environment.

We can recommend to use Indy clients/servers for MasOS

Great Thank you for the super fast response :wink:

Shalom
Manfred

Indy channels WAE

What do you mean with WAE?

Work as Expected :no_mouth:

When i run my code i get following error:

Error:
Project raised exception class ‘RunError(232)’

The Problem occurs on the Line:
(RORemoteService2 as IBaseLoginService).LoginEx(Relativity_Connection_String);

The Same code runs without a Problem on Windows. The Connection_String is the same.

procedure TDM.setup_connection(Sender: TObject);
begin
    ROAESEncryptionEnvelope.Password:= sync_aes;
    ROIndyHTTPChannel1.TargetUrl:= sync_server;
    RemoteDataAdapter_Login.TargetURL:=sync_server;
 
    try
          // Try first AES with TLS
          (RORemoteService2 as IBaseLoginService).LoginEx(Relativity_Connection_String);
          Except
 
          begin
               ROBinMessage1.Envelopes.Delete(0);
               (RORemoteService2 as IBaseLoginService).LoginEx(Relativity_Connection_String);
          end;
    end;
 
    setup_dataset(Sender);
end; 

File IdIOHandlerStack
Line 465

constructor TIdConnectThread.Create(ABinding: TIdSocketHandle);
begin
  FBinding := ABinding;
  inherited Create(False);
end; 

Is this a known Problem?
Shalom
Manfred

check http://wiki.lazarus.freepascal.org/Lazarus_Faq#When_I_run_a_program_with_threads_I_get_runtime_error_232

Great Thank you very much.

Now my App works also on MacOS :grin::coffee:

Shalom
Manfred

Follow up Question / Problem

Under MacOS 10.6.6 with Lazarus 1.8.4 it works.
With MacOS 10.13.5 with Lazarus 1.8.4 i get Following Error:
image

The Source of the App is the Same.

Shalom
Manfred

This Line;

raise EZDecompressionError.Create(code);

function ZDecompressCheck(code: Integer; raiseBufferError: Boolean = True): Integer;
begin
  Result := code;

  if code < 0 then
  begin
    if (code <> Z_BUF_ERROR) or raiseBufferError then
    begin
      raise EZDecompressionError.Create(code);
    end;
  end;
end;

try to replace define in uROZLib.pas
was:

  {$IF (fpc_version=2) and ((fpc_release=2) and (fpc_patch>4)) or (fpc_release>2)}

new one:

  {$IF ((fpc_version=2) and ((fpc_release=2) and (fpc_patch>4)) or (fpc_release>2)) or (fpc_version>2)}

will it solve this case?

The Error still shows up…

do the same change in uROZLibExGZ.pas too

Sorry, the Error still shows up.
I always recompile all Package new. ( Just for information )

I have no access to Mac OSX at this moment …
as a temporary workaround, you can disable ZLIB compression in BinMessage and GZip compression in http servers

If you want i can give you access to my Mac Vmware ( with Team Viewer ).

i did now include this:
ROBinMessage1.UseCompression:=false;
but the error still shows up.

you should disable ROBinMessage1.UseCompression on both (client and server) sides.
for http channels, disable AllowGzipEncoding too


Can you test this issue for servers compiled with Delphi and not with Lazarus, pls?

In Window Lazarus 1.8.4 everything works fine. The Problem is only under MacOS 10.13.5.
( In MacOS i do not have a Delphi… )

Can you test this issue for servers compiled with Delphi and not with Lazarus, pls?
I use the Relativity Server