谁能给个Delphi中调用线程的实例(包括释放线程等)!谢谢!

linbz 2003-02-27 09:27:35
谁能给个Delphi中调用线程的实例(包括释放线程等)!谢谢!
...全文
62 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
halfdream 2003-02-28
  • 打赏
  • 举报
回复
\Borland\Delphi6\Demos\Db\BkQuery
xxzxwl 2003-02-27
  • 打赏
  • 举报
回复
th.freeonterminate:=true;
xxzxwl 2003-02-27
  • 打赏
  • 举报
回复
调用线程:
unit unit1;
interface

private
th:=Tthread;
end;


begin
th:=Tthread.create(true);
th.freeonterminate;
th.resume;
end;

放线程:


procedure Tthread.Execute;
begin
......
self.terminate;
end;
netfyee 2003-02-27
  • 打赏
  • 举报
回复
up
sysu 2003-02-27
  • 打赏
  • 举报
回复
Delphi有自带例子:
\program files\Borland\Delphi6\Help\Examples\Prgrsbar\
fancier 2003-02-27
  • 打赏
  • 举报
回复
gz

1,183

社区成员

发帖
与我相关
我的任务
社区描述
Delphi Windows SDK/API
社区管理员
  • Windows SDK/API社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧