You are not logged in.
Pages: 1
If I use more than one TSQLRestClientURI for which OnIdle is defined, the program comes into the loop (the OnIdle event is called all the time).
This can be easily reproduced at the example "04 - HTTP Client-Server".
Database: TSQLRestClientURI;
NewClient : TSQLRestClientURI;
...
procedure TForm1.FindButtonClick(Sender: TObject);
var Rec: TSQLSampleRecord;
begin
Database.OnIdle := OnIdleClient;
...
procedure TForm1.FormCreate(Sender: TObject);
begin
Model := CreateSampleModel; // from SampleData unit
NewClient := TSQLHttpClient.Create( 'localhost','888',Model);
NewClient.OnIdle := OnIdleClient; // NewClient.OnIdle := OnIdleClient2;
NewClient.SetUser('User','synopse');
end;
Offline
Thanks ab, with today version all works fine.
Offline
Pages: 1