Constructor UnloadDataThread.Create(ReturnCount1:Integer;RecordNo1:Integer;Str1:String;LocalTableSave:TTable;RecTime1:String;DBID:String;AdoQuery1:TADOQuery;Num:integer;ThreadNo1:integer;Msg:string;SQL:string);
var
I:Integer;
temp:String;
ParamCount:Integer;
Begin
Inherited Create(False)
//马上启动线程
ThreadQuery:=TADOQuery.Create(nil);
ThreadQuery.Clone(AdoQuery[Num],ltUnspecified);
WaitForSingleObject(FSemaphoreCon,INFINITE);
ThreadQuery.Connection:=Form1.GetConnection(Number);FreeOnTerminate:=True;
End;
请问大侠,我这里是线程创建的一段代码,但在ThreadQuery.Clone这里就出错了,怎么回事啊?