From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
After building an executable of my application the program crashes when calling vi's (or vi templates) programatically (Via open vi reference). The error message is: linker.cpp line 1926. Can anybody help me?
Are you using LV 7.0? In this case this problem might be
caused by a bug in the LV 7.0 runtime engine when calling templates
that contain express vis. The easiest workaround would be to upgrade to
LV 7.1.1. If this is not possible for some reason here are some more
potential workarounds:
Take all the express VIs that are
inside the template VI and turn them into static subVIs. You can do
this by right-clicking on the express VI and selecting "Open Front
Panel"; then save the express VI as a normal subVI.
Build the entire application into a single executable, which will force all of the express VIs to get compiled as static subVIs.
Don't use the runtime engine at all and always run your application in development mode.