how to force end jvthread component thread from JEDI?

how to force end jvthread component thread from JEDI?

in example use this
if not JvThread1.Terminated then
    JvThread1.Terminate;
  while not JvThread1.Terminated do
  begin
    Sleep(100);
    Application.ProcessMessages;
  end;

but the procedure stay carried to completion.

Comments

  1. thanks you Lars Fosdal , but your code not compatible with delphi xe7.

    ReplyDelete
  2. I use XE7.1 and a TThread descendent. The message routines are Windows functions. I wrote this from memory, though.

    ReplyDelete
  3. Ok, Solved. some class missing used in my unit.

    ReplyDelete

Post a Comment