Page 1 of 1

OSStopTask() returns OSERR

PostPosted: Tue Jul 31, 2007 3:06 am
by graeme
I have OSStopTask() return OSERR (=1).
What could be the probable causes ?
(as far as I am aware the tcbP argument appears valid.)

Re: OSStopTask() returns OSERR

PostPosted: Tue Jul 31, 2007 8:03 am
by aek
See the User Manual -- OSStopTask() can only stop tasks in certain states.

------------------


Re: OSStopTask() returns OSERR

PostPosted: Tue Jul 31, 2007 10:24 am
by graeme
I find the Note in OSStopTask a bit ambiguous/confusing. Does it mean a task can or cannot be stopped if waiting for an event ? The task I want to stop is (likely) waiting for an event.
What I want to do is temporarily stop a task from responding to an event so as to allow another started task to respond to that same event instead.