Is thread safe if a thread asynchronously read the information from VCL Controls in Delphi?
eg.
procedure TMyThread.Execute;
var bOK:Boolean;
iOK:Integer;
begin
while not terminated do
begin
bOk:=MyForm.cbCheckBox.Checked;
iOK:=MyForm.Left;
sleep(20);
end;
end;
If it is not thread safe how should I do to catch the event when the checkbox has changed its property.