Hi, Danijel I've found a problem.
If you have an TRthHTTPClient connected with a TRtcClientModule with this config:
with HTTPClient do begin
AutoConnect := True;
MultiThread := True;
end;
and..
with ModuleClient do begin
Client := HTTPClient;
AutoSession := True;
AutoSessionPing := 10;
ModuleFileName := '/$REMOTE';
end;
if you try to make a function call
with Prepare('Login') do
begin
asString['user'] := AUser;
asString['passwd'] := APass;
end;
ModuleClient.Call(resLogin);
ModuleClient.WaitForCompletionEx(True);
DoWaitForCompletion(True) exit immediately with "wait_Error", this because when ModuleClient.Call will executed the HTTPClient is not connected I suppose.