In Labview 8.5, when having defined multiple classes with equally named
method vis, an application build of a .exe executable has to rename the
vis of the classes to avoid name clashes.
I've tried two methods for achieving this:
1. Let the application builder rename clashing vis automatically, giving warnings at build time.
2. Rename vis of the classes myself by applying a prefix to all
contained items for every class, this results in a correct .exe build
without warnings.
In both cases, the build seems to go OK, but at runtime the executable
cannot be loaded and the following message is displayed without further
diagnostic information:
------------------------------------------
The VI is not executable. The full
development version of LabVIEW
is required to fix the errors.
------------------------------------------
The error is easily reproducible by:
1. Create a fresh project with one class and one regular vi to use as startup vi.
2. Create an instance of the class as a constant on the block diagram.
3. Build two .exe applications which both use the regular vi as startup vi:
- One without further modifications of the build configurations
- One in which the class is renamed (in Category 'Source file Settings')
Both builds should go OK
The first built .exe should run without errors, though it functionally does nothing.
The second built .exe should display the error:
------------------------------------------
The VI is not executable. The full
development version of LabVIEW
is required to fix the errors.
------------------------------------------
It bothers me that no diagnostic information whatsoever is given with
which to track down the problem. It has cost me a lot of time to find
this out.
Is this a known bug or limitation of LabVIEW 8.5?
Greetings,
KoosKoets