WebWaitMessage and WebCore 2.1

Hi,

The following code worked ok on previous version. The line after .Show was executed immediately. Now on latest version, code execution does not continue after .Show.(The code is executed on a OnClick event of a WebButton)

...
WebWaitMessage.Show;
WebMemo1.Text := '';
....

Any hints?

Thanks in advance.

Omar Zelaya

I cannot reproduce this.

Test code:

procedure TForm1.WebButton1Click(Sender: TObject);
begin
  webtimer1.Interval := 5000;
  webtimer1.Enabled := true;
  console.log(Now, 'step 1');
  webwaitmessage1.Show;
  webmemo1.Text := '';
  console.log(Now, 'step 2');
end;

procedure TForm1.WebTimer1Timer(Sender: TObject);
begin
  webwaitmessage1.Hide;
  console.log(Now, 'step 3');
  webtimer1.Enabled := false;
end;

Result in console:

So, you can see from the timestamps that step 1 & step 2 are shown immediately after each other.

Hi,

I have updated to latest, and i'm not able to reproduce it again.

Thanks.

Omar Zelaya