Hello coders,
I have recently encountered a problem very similar to the ones described here, but with another variation. At this point I have simplified my application to the following:
-Have a list of plugins which are "Always Included" in the Build Specs
-Main program waits for user to push a button to run a plugin
-Program opens a VI reference for the plugin, opens the front panel, and closes the VI reference.
In the IDE, I can repeatedly load the plugins in any order without receiving an error. In the executable, I can load any of the plugins at least once without error. However, after the first time loading one (a specific one) of the plugins, most of the plugins will fail to load (error 1003) for all subsequent runs. The only way to get the plugins to load successfully again is to close the executable and load it again from scratch.
As a test, I deleted all of the code for the plugin that seems to trigger the errors so that only the controls and indicators corresponding to the connector pane remained. When I run the executable with this plugin instead of the original version, I no longer receive any errors over multiple runs.
So at this point I am relatively convinced that the "suspect plugin" has some kind of bug such that after it loads the first time things go awry. The previous suggestions about missing subVIs seem like they could be appropriate here, but then why does the supect plugin load successfully the first time? Also, why would loading one plugin have any effect on the future loading of other plugins?
Clearly, I could use some expert advice here... and where better to turn than the LAVA community! I'm happy to send more info or code snippets if it will help.