Screen will stuck when I try to del/clean an obj

I creat an container to show some info with a label, and a button outside the container.
I try to creat a event, when the button was touched, the container will be delete.

But the MCU will stuck when the button was pressed.
What is the problem maybe?

I suggest using a debugger to find exactly where it gets stuck. Chances are you’re passing an invalid pointer to lv_obj_del or something similar.

A code sample would also be useful.

1 Like