Hello,
I have a problem with the menus of my main window.
The code is :
----------------------------
BuildMenu()
oWnd:SetMenu(oMenu)
----------------------------
I made a procedure BuildMenu() which reads the menus out of a file into oMenu.
The menus are set by : oWnd:SetMenu(oMenu).
I need to do this because, depending on some settings set by the user, the menus need to be changed.
That works fine until I passed these code lines between 10 or 15 times.
Then I can click on one of my menuitems, but nothing happens anymore.
The only thing I can do is quitting my application and restarting it. Then the menu is working fine again until I passed between 10 or 15 times the code I mentioned.
What is the reason for this problem and how can I solve it ?
Thanks.
Michel