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.
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.
thanks you Lars Fosdal , but your code not compatible with delphi xe7.
ReplyDeleteI use XE7.1 and a TThread descendent. The message routines are Windows functions. I wrote this from memory, though.
ReplyDeleteOk, Solved. some class missing used in my unit.
ReplyDelete