Hello everyone What is the best way to delete a framwin widget or a window? When I use Wm_DeleteWindow(), it works fine in the first call but it results Hardfault in the next calls.
you cannot call WM_DeleteWindow() twice on the same window. In fact, you should not call any Window Manager or Widget functions on windows/widgets that have been deleted. Can you send me some code to reproduce this issue?
I did not call WM_DeleteWindow() twice on the same window. Based on user interaction a custom message box (framwin) is created and deleted by pressing OK button on the message box. It works well in first creation and deletion, but doing same action i.e, pressing OK button (deleting the window) will cause Hardfault.