I
iamtalent
Unregistered / Unconfirmed
GUEST, unregistred user!
type
TmyThread = Class(TThread)
private
Fmyclass : Tmyclass;
protected
procedure Execute;override;
public
constructor Create(myclass : Tmyclass);
destructor Destroy; override;
end;
procedure TmyThread.create(myclass : Tmyclass);
begin
Fmyclass := myclass;
...
end;
procedure execute;
begin
...Fmyclass...此处的Fmyclass和create处产生的fmyclass不同了。
end;
TmyThread = Class(TThread)
private
Fmyclass : Tmyclass;
protected
procedure Execute;override;
public
constructor Create(myclass : Tmyclass);
destructor Destroy; override;
end;
procedure TmyThread.create(myclass : Tmyclass);
begin
Fmyclass := myclass;
...
end;
procedure execute;
begin
...Fmyclass...此处的Fmyclass和create处产生的fmyclass不同了。
end;