This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TM4C1290NCPDT: Task_delete(Task_self()); crash my system

Part Number: TM4C1290NCPDT

Tool/software: TI C/C++ Compiler

Hi

Why Task_delete(Task_self()); is crushing my system

I verified that Task_self() task is tha same as tasl_create handler, why is my system crushing when I call  call Task_delete which was ctated by Task_create ?

Thanks

  • Hi Sergey,

    Where are you calling Task_delete from? You cannot delete yourself? Task_delete must be called from a different task. Note: if you have Task.deleteTerminatedTasks set to true in the .cfg, the kernel will clean up a terminated task for you.

    Todd