Will objects created in a task, be gone too when I delete this task with vTaskDelete(NULL)?
From http://www.freertos.org/a00126.html “Memory allocated by the task code is not automatically freed, and should be freed before the task is deleted.” so no - only the memory allocated to the task by the kernel (the TCB and stack) are freed. If you application code allocates any other memory or objects it must delete them.
Another question, regarding C++. For example: I have a Foo object. That Foo object makes 3 Bar objects. If I delete the Foo object, will the Bar objects be gone too?
Another question, regarding C++
I don’t think that question is related to FreeRTOS.
Correct, but could you please answer? You are so superfast in responsing, and I’m sure you know the answer. In the future I won’t ask other than FreeRTOS related things.