Hi!
I have a question regarding dynamic menus in labview.
I have a application that starts with a default set of menus which are created with a menubar and a couple of inserted standard items.
But I also have a feature that updates this menubar with new item depending on current state of the application.
When I update the menu with my new items i first make a "delete menu items" on current menubar and the inserts all items again with the modifications.
But what I found out was that if I have a menu open (i.e. if i have clicked on the "File" item once in the menu) and the program decides to update the menu labview crashes.
I suppose Labview deletes the menu while it's actually open !?!? Labview crashes with an application error saying referenced memory at 0x000000. The memory could not be read.
I've tried to find a solution to disable menus or simulate a "escape" key just before i do delete menu items...but haven't succeded yet.
This problem doesn't occur normally...but it happened 4-6 times in my real application..... don't want this to happen at all.
Is there anyone which experienced the same problem and might have a nice solutions to this problem ?
Best Regards
Marcus