阿善 ·
·
阅读: 980
其实就是DELPHI自动创建线程类时的注释:用到可视组件时要注意线程同步
{ Important: Methods and properties of objects in visual components can only be
used in a method called using Synchronize, for example,
Synchronize(UpdateCaption);
and UpdateCaption could look like,
procedure sdfed.UpdateCaption;
begin
Form1.Caption := 'Updated in a thread';
end; }