本文整理自网络,侵删。
1、在Ado创建和销毁时要用
uses ActiveX;
CoInitialize(nil);和CoUninitialize;
2、执行查询的时候,如果需要长时间处理,要把查询放到一个过程里,同步执行。如:
procedure TData.Execute;
begin
while not Terminated do
begin
Synchronize(ReqStockMinuteAlll);
Sleep(3000);
end;
end;
3、ADO控件都要在线程里手动创建
相关阅读 >>
Delphi extractclassname 字符串处理函数
Delphi中strtodatetime函数tformatsettings参数的使用
print documents from Delphi - print pdf, doc, xls, html, rtf, docx, txt
Delphi xe6 android 实现base64字符串的解析
更多相关阅读请进入《Delphi》频道 >>