06-29-2016 01:46 AM
Hi,
I am wondering if anyone else has seen issues when updating projects to 2015 (in my case from 2013)....
The first issue I saw was this. It quite magically disappeared by re-creating the the BuildSpec. Since it was a simple one, it didn't bother and filed the case as "S... happens"
Yesterday I stumbled over a (maybe related) issue: the application works fine from the runtime enviroment but throws errors when build into an .exe.
The build runs without any errors.
Long story short.... the dialog box pops up, showing the complete executable path including the Name of the exe.. which should be removed according to the code along with a further file structure level.
This makes me feel uncomfotable and distrusfull. I can not rely on the code being produced
Recreating the build script is not an option at the moment since it is very complex.....
So...has anybody seen anything like this before?
Cheers
Oli
BTW 15.0.1f1 @32Bit
Solved! Go to Solution.
06-29-2016 03:04 AM - edited 06-29-2016 03:06 AM
@Oli_Wachno wrote:
...including the Name of the exe.. which should be removed according to the code along with a further file structure level.
Why? Your code takes the VI's path and strips twice. The result will depend on exactly where the VI is inside the EXE. If your build spec has the 8.x flag set, the VI will be right under the EXE. Otherwise, its exact location will depend on the hierarchy of your VIs, because VIs are saved with their original relative locations inside the EXE.
I'm guessing what you should actually use is the Application Directory VI, which returns the folder of the EXE regardless of which VI calls it.
I suppose it's possible your 2013 project had the 8.x flag set and 2015 reset it for some reason, but that doesn't seem likely.
06-29-2016 05:29 AM
Hi tst,
thanks for your feedback.
Starting with the easier stuff: neither the 2013 nor the 2015 build spec have the 8.6x flag disabled.
Thanks for leading me into the right direction, missed the fact, that the woning library also shows up in the VI Path. So I'd need a third Strip Path.... or change over to the application folder as you suggested.
The only thing that makes me wonder that it is still working using 2013.... but I'll investigate
Cheers
Oli
06-29-2016 05:44 AM