Delphi计时器执行时,它不在主线程中吗?
procedure TMainForm.MyTimerTimer(Sender: TObject);
begin
MyModalDialog.StatusText.BeginUpdate;
MyModalDialog.StatusText.Text := 'timer fired...';
MyModalDialog.StatusText.EndUpdate;
end;
我想知道这里的崩溃是否是由于在主线程之外更新了 GUI 元素。