Login  Register

Re: How to kill an overlapped thread ?

Posted by Schwab,Wilhelm K on Feb 24, 2005; 1:36pm
URL: https://forum.world.st/How-to-kill-an-overlapped-thread-tp3373253p3373254.html

> From Dolphin I am calling an external dll, I am using the overlap
> mechanism
> because the call returns in 10 mins.
>
> Is there a way to stop such a call while it is executing ? perhaps by
> killing
> the overlapped thread  ?

Dolphin tries to avoid being overly aggressive about terminating the OS
thread, which is wise.  I had a less severe but similar problem, and
(IIRC) Blair was going to add some type of panic option that would
simply terminate the OS thread.

It seems that anything that takes 10 minutes to run should at least
check with an OS event or otherwise allow one to induce a graceful exit.

Have a good one,

Bill


--
Wilhelm K. Schwab, Ph.D.
[hidden email]