Hello,
I know it's not good and should be used as a last resort or not at all. But I still need a true, cross-platform solution to instantly kill the execution of a thread, no matter what. Since I only have Windows experience, this is what I have until now:
Uses [...]{$IF defined(MSWINDOWS)}, WinApi.Windows{$ENDIF}
[...]
{$IF defined(MSWINDOWS)}
If Self.IsRunning Then TerminateThread(Self.Handle, 1);
{$ENDIF}
How this should be implemented on Linux and more?
Thanks!