I would suspect a path problem - How are you specifying the path to the dynamic VI?
If the OPEN call is in a VI -FILE- ( not VI within LLB), or if it's in a library within a folder different from the main, then the relative path out to anything else is different depending on whether you're in the dev. system or an EXE. If the OPEN call is in a LLB at the same folder level as the executable level, then you're OK.
Are you using PATH TO THIS VI as a starting point for generating a path to the plug-in?
Assume you have:
My Disk:My Folder:My Program Main.vi
My Disk:My Folder:My Library.llb:Dynamic.vi
If you use PATH TO THIS VI in the main vi, then one parent (STRIP PATH once) yields the containing folder (My Folder), and two parents (STRIP PATH twic
e) yields the folder that contains it.
Bit when you make an executable out of it, you have
My Disk:My Folder:My Executable program:My Program Main.vi
My Disk:My Folder:My Library.llb:Dynamic.vi
Here it takes TWO STRIP PATH operations to get to the dynamic VI, not one.
That doesn't explain why the problem would go away when you open the dynamic VI and re-save it.
If you do that (open the dynamic VI and re-save it), you say the problem goes away... When does it re-appear?