在执行完thread.terminate之后再执行.free就发生错误。
selthread = class(TThread)
private
{ Private declarations }
proci:integer; //
procedure Setproc; //设置滚动条
protected
procedure Execute; override;
public
mislsxg,misNdCQ:boolean;
mFromDate:word;
mToDate:word;
mlLabel:TLabel;
mProgress1:TProgressbar;
mSComb:TACombCon; mPSkIDCs:PTARStockId;
end;
selthread = class(TThread)
private
{ Private declarations }
proci:integer; //
procedure Setproc; //设置滚动条
protected
procedure Execute; override;
public
mislsxg,misNdCQ:boolean;
mFromDate:word;
mToDate:word;
mlLabel:TLabel;
mProgress1:TProgressbar;
mSComb:TACombCon; mPSkIDCs:PTARStockId;
end;
只要设为执行完terminate,再设为nil就行?