LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why am I getting Run-time menu error (Error 88 occurred at One or more illegal menu item index in...) in my built application (single .exe) , but don't get any error when running/debugging it?

I am using LabVIEW 6.02 & also downloaded the application builder patch. For my runtime menus, I've a subVI that first calls "Delete Menu Items.vi" to get rid of the standard menu items and then "Insert Menu Items.vi" to add my own. I only get an error when I try to run the built application.
0 Kudos
Message 1 of 3
(2,962 Views)
There was a similar issue in LabVIEW 5.0 where you would get the error if you passed an empty array to the 'items' input of Delete Menu Items. This was corrected in version 5.0.1. Did you mass compile your VI's after upgrading to version 6.0.2?

I tried to reproduce the problem in a small VI but was not successful. I can run an executable built from this example without any problems. I am attaching it for you to test.

Chris_Mitchell
Product Development Engineer
Certified LabVIEW Architect

0 Kudos
Message 2 of 3
(2,962 Views)
I created this code in 6.0.2. I also was not passing in empty arrays. The problem was that in the built version, the number of Labview menu items that I was deleting was one less than the number in the version running in debug; when I removed the last field in the array for the input to the Delete Menu Item VI, I no longer get the error.
0 Kudos
Message 3 of 3
(2,962 Views)