04-07-2011 03:04 PM
Hello,
I am using a producer/consumer design. Within the producer I have an event structure that generates messages for the consumer based on the event. One of the events in the event structure is set to get the menu selection. Within the consumer loop, some of the states change the menubar items. For example, if the mode of the program is changed from auto to manual, the menubar items change accordingly.
The problem I am having is that if the mode is changed to auto, for example, and then a menubar pulldown is accessed quickly afterward (sometimes happens accidentally even), before the menubar item change happens, there is an error and labview crashes. I am guessing that the problem is that the menubar is being accessed by the user while it is trying to be modified. ?? Disabling the menu tracking until the items are successfully changed does not help, because it doesn't appear to prevent you from pulling a menu down, only from making a selection.
Any advice? This is the problem as it appears to me, anyhow.
Thanks as always!
Greg
Solved! Go to Solution.
04-08-2011 01:40 AM
You can set Cursor "Busy" till the time your Menu is updated.
So user will not be able to click Menu.
04-08-2011 11:13 AM - edited 04-08-2011 11:14 AM
That's it! I knew of these functions, but I've never used them, and it didn't occur to me to use them now.
Thanks a lot.
-Greg