Dynamically add containers to swipe container at runtime
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Labels:
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-03 01:57 AM