FAdoConnect 是全局变量么?
你考虑过如果另外一个线程已经将 FAdoConnect 创建出来了,
你的这个线程怎么办? 重新再创建一遍? 你要判断FAdoConnect 的状态,如果是已经创建了,就要另外作处理!
你考虑过如果另外一个线程已经将 FAdoConnect 创建出来了,
你的这个线程怎么办? 重新再创建一遍? 你要判断FAdoConnect 的状态,如果是已经创建了,就要另外作处理!
sorry!我已经搞定了!!!!
但右出了一个新问题:在Execute中我:
try
begin
sqlstr:='select * from table1';
with FQry_1 do
begin
close;
sql.clear;
sql.add(sqlstr);
Open;
end;
end
exption
begin
showmessage('Thread error!');
end;
如果,我在线程执行时关掉数据库,线程不抛出错误,是怎么回事????