Posted on Nov 1, 2008 by
Happy Giraffe
Instead of 'if task.Terminated' use
if WaitForSingleObject(task.TerminateEvent, 0) = WAIT_OBJECT_0 then
I do agree that this is my problem - bad object interface. Terminated signals whether the task has been fully stopped, not whether it should terminate.
Comment #1
Posted on Nov 1, 2008 by Happy Giraffe* Breaking interface change * - IOmniTask.Terminated renamed to IOmniTask.Stopped. - New IOmniTask.Terminated that check whether the task has been requested to terminate.
Status: Done
Labels:
Type-Defect
Priority-Medium