I have a top-menu: Project, View, Server, Document, Settings, Help
Under View, i have menu items : Project, Address Space, Log, Attributes.
Upon startup, I set the menuitem_state to ekGUI_ON to show a tick against Project, Address Space,Log, Attributes.
I also create flyout windows for these 4 items.
Upon program start, i create these 4 flyouts and set the menuitem_state to ekGUI_ON.
When I close the flyout Project by selecting the menuitem again, the window disappears (hides itself).
I now want to set the menuitem_state to ekGUI_OFF.
But the entire drop menu (Project, Address, Space, Log, Attributes) cannot be shown anymore.
If i remove the instruction to set the menuitem_state to ekGUI_OFF (meaning the tick still remains even after hiding the flyout), the error goes away.