Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

After vTaskDelete, created objects gone too?

Posted by jirachi2 on May 20, 2014

Will objects created in a task, be gone too when I delete this task with vTaskDelete(NULL)?


After vTaskDelete, created objects gone too?

Posted by rtel on May 20, 2014

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.

Regards.


After vTaskDelete, created objects gone too?

Posted by jirachi2 on May 20, 2014

Thanks!!

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?


After vTaskDelete, created objects gone too?

Posted by rtel on May 20, 2014

Another question, regarding C++

I don't think that question is related to FreeRTOS.

Regards.


After vTaskDelete, created objects gone too?

Posted by jirachi2 on May 20, 2014

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.


After vTaskDelete, created objects gone too?

Posted by rtel on May 20, 2014

Sorry but this forum is specifically for FreeRTOS questions, and to remain a valuable resource to people using FreeRTOS must remain so and not become a chatty general programming forum.

There are lots of forums where you can post your C++ questions.

Regards.


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner