Checking for and deleting task handle

groufosse wrote on Thursday, April 25, 2013:

Hi,

I have a very simple question. How can I check to see if a task (using it’s task handle) is still in existence, or if it has been deleted?  If I delete it using vTaskDelete, then check the handle to see if it’s NULL, doesn’t seem to work.

Should vTaskDelete, after it’s completed, NULL the xTaskHandle pointer?

Thanks for your help!

rtel wrote on Thursday, April 25, 2013:

The vTaskDelete function can’t do it as the parameter is not passed in by reference, but the task that calls the delete function can null the handle if that’s what is required.

Regards.

groufosse wrote on Friday, April 26, 2013:

Hi,
Thank you for the prompt reply.
Sorry to ask…just how do I get the function it to NULL the pointer. I can’t assign anything on the return function…

groufosse wrote on Friday, April 26, 2013:

OK, I now see what you are saying. Thanks!