L
like_ask
Unregistered / Unconfirmed
GUEST, unregistred user!
请问如下代码的线程类中,
我连续执行了六个线程,并分别查询完完成后,为什么在关闭程序的时候报错
可能我的分少点,请大家不要介意。我只有这么多。
system error :code 1400
为什么呢
unit QuerThrdd;
interface
uses
Classes,adodb,windows,Messages;
type
TQueryThreadd=class(TThread)
private
fQuery:tADOQuery;
protected
procedure Execute;override;
//procedure FreeOnTerminate;override;
public
constructor Create(Suspended:Boolean;Query:TADOQuery);
end;
implementation
uses askunit;
constructor
TQueryThreadd.Create(Suspended:Boolean;Query:TADOQuery);
begin
inherited Create(Suspended);
fQuery:=Query;
FreeOnTerminate:=True;
end;
//
procedure TQueryThreadd.Execute;
begin
fQuery.Open;
sendmessage(FRMASK.Handle,SX_MyMessage,4,4);
end;
end.
我连续执行了六个线程,并分别查询完完成后,为什么在关闭程序的时候报错
可能我的分少点,请大家不要介意。我只有这么多。
system error :code 1400
为什么呢
unit QuerThrdd;
interface
uses
Classes,adodb,windows,Messages;
type
TQueryThreadd=class(TThread)
private
fQuery:tADOQuery;
protected
procedure Execute;override;
//procedure FreeOnTerminate;override;
public
constructor Create(Suspended:Boolean;Query:TADOQuery);
end;
implementation
uses askunit;
constructor
TQueryThreadd.Create(Suspended:Boolean;Query:TADOQuery);
begin
inherited Create(Suspended);
fQuery:=Query;
FreeOnTerminate:=True;
end;
//
procedure TQueryThreadd.Execute;
begin
fQuery.Open;
sendmessage(FRMASK.Handle,SX_MyMessage,4,4);
end;
end.