Recent

Author Topic: how to force stop thread ?  (Read 11599 times)

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: how to force stop thread ?
« Reply #15 on: May 03, 2016, 05:29:40 pm »
for more information I can't using terminate because my thread don't use infinity while or other loop to check Terminated and exit Execute function.

There must be some loops in your code where most of the time is spent.
Check Terminated inside them.
If the code is complex, you can use the exception mechanism to return back from your call hierarchy.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

 

TinyPortal © 2005-2018