线程FThread创建时
设置FreeOnTerminate := True;
button的click事件代码
if assigned(FThread) then
  FThread.Terminate;好像不能每次都保证将线程停止,
那位大虾有没有更好办法,谢谢