03-06-2013 10:56 PM
Hello,
Please take a look at the attached ZIP file with sample project. Caller loads a sub dynamically. It works well in the development environment (LV 2011) but when I build the EXE, it stops working. Please take a look; ideally, repost fixed project in this thread so others can benefit from how to fix this...
Thank you !
JorgeinSD
Solved! Go to Solution.
03-07-2013 02:15 AM
Hi Jorge,
it's the ususal problem: in the executable the path to your dynamically loaded VI changes.
You have set it to be included in the executable. So the path will change to Appdir\DynLoad.exe\LoadMeDynamically.vi, but you try to open the path AppDir\LoadMeDynamically.vi...
Options:
- check the runtime environment (by property node) to decide which path to use
- change the location of the VI to "support directory", it will be a folder named "data" next to your executable. Call the VI from that folder. You can do the same inside your project to have same calling conventions in development and runtime environment...
03-07-2013 08:06 AM
Thank you GerdW !
It worked well. I read a few responses to this issue in other posts but I wasn't getting it though I knew I was close so I decided to post this example to help in the explanation.
The working project is attached.
JorgeinSD