Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




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 ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists