09-26-2017 07:51 AM
Hello
I have run into a strange problem. I am building a exe file to run my application on a non development machine. It builds and i can start it on my development machine without any problems.
When moving it onto another machine, it searches for two ctl files and doesnt find them. The strange thing is that if i just click cancel when asked to find the files, the application starts and runs without any problem. Even if i build the application with the files specifically included and when asked for the files being suggested the very folder where the files are clearly present the application just wont recognize them. But it still starts and works.
I am not sure what to do with this, i have tried what i think is most variations of including the files in the build. My client would rather not have to wait for the search and click cancel every time the application is started. If i was missing some drivers on the other machine it shouldnt have started.
Its Labview 2016. The controls are type defs, one cluster and one enum. They are used with shared variables (single process) if that makes any difference.
Anyone have any idea or suggestion?
Best Regards,
Nimgaard
Solved! Go to Solution.
09-26-2017 07:55 AM
09-26-2017 07:58 AM
Thanks for the answer, i tried this but then it wont build.
Error:
Error 1502 occurred at AB_Source_VI.lvclass:Close_Reference.vi -> AB_Build.lvclass:Save.vi
Possible reason(s):
LabVIEW: Cannot save a bad VI without its block diagram.
Clicking out it works again.
09-26-2017 08:08 AM
09-26-2017 08:14 AM
That actually helped. Disconnected the type defs and it built. Built ok and started without asking for the controls.
Thank you very much for the fast answer, even managed to fix it before leaving my client.
Best Regards,
Nimgaard
10-17-2022 03:11 PM
Disconnecting type defs from shared variables worked for me too using the disconnect in the build doesn't work because the VIs using the shared variable need to be recompiled to work. Disconnecting them in the project library and reconciling works. I suggest keeping a copy of the project sources before disconnecting.