2020-07-21 03:02 PM
Hello,
ic want to add container dynamically at runtime. For example I want to create new containers an delete old once. My first try was to allocate an object on the heap an store the pointer in the class object. But if a add them to a container the chip hangs up.
Is there anyone with experience in this field?
Thank you for help.
BW NPr
2020-07-21 08:16 PM
That should all be possible. The library doesn't care if your objects are on the stack or on the heap.
Stopping in the debugger after the hang will often show you have stopped at an assert() statement.
2020-07-22 06:59 AM
My problem was an allocation error. Because I use FreeRTOS and C++. And the new operator wasn't overloaded.
Thank you for your help!
2024-07-03 01:57 AM