소스 검색

* Fix for bug #18044

git-svn-id: trunk@16445 -
michael 15 년 전
부모
커밋
74098a8f7d
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      packages/fcl-base/src/fptimer.pp

+ 2 - 0
packages/fcl-base/src/fptimer.pp

@@ -253,6 +253,8 @@ Procedure TFPThreadedTimerDriver.StopTimer;
 begin
   FThread.FTimerDriver:=Nil;
   FThread.Terminate; // Will free itself.
+  FThread:=Nil;
+  CheckSynchronize; // make sure thread is not stuck at synchronize call.
 end;