05-01-2007 08:35 AM
05-01-2007 11:42 AM
Inside the Create Icon subvi, there are Strip Path functions. Works fine when running as a vi. But when you compile into an exe, and extra path is added. Then the strip paths do not strip down far enough. For example:
Vi path is C:\My Projects\Labview\MyVI.vi
Current vi's path is C:\My Projects\Labview. If you stip path once you get C:\My Projects
Now when you compile into an exe you get C:\My Projects\Labview\MyVI.exe. MyVI.exe is considered part of the path. So the current vi's path now becomes
C:\My Projects\Labview\MyVI.exe. If you strip path once you get C:\My Projects\Labview. You would need an extra strip path to get to the same level as when the vi is run in Labview, not as an exe. So now the program is at the wrong directory level to change icons. This might be why you get a crash.
I hope this is clear. We have a function that was created to strip path depending on if the application is a vi or exe. If exe, it strips path twice instead of once.
05-01-2007 11:59 AM
05-01-2007 12:39 PM
05-01-2007 05:23 PM
05-01-2007 06:03 PM
I tried building this with 8.2 and still have the same problem. I am also using Win XP with .net 2.0.
Let me explain what I am seeing in more detail....
The executable runs OK, but when you right click the icon on the tray and select "show front panel" a pop-up appears that said you did something, but when you click OK (on the pop-up) the entire program ends... All the other selections, user, vis in memory, etc. work fine, its just the "show front panel" selection that causes the app to quit.
In my application the program doesn't end, the icon disappears, then my cmu performance goes to 100%, afterwhich I need to end the app. with Task Manager, but I think this is somehow related to what the NI example is doing (they both show/hide the front panel the same way).
05-01-2007 06:05 PM
05-02-2007 08:51 AM
05-02-2007 09:18 AM
tbob,
Can you pl post that NI example saved for LV 7.1 ?
I dont ve 8.0 or upwards. ![]()
Will it run in 7.1 ? Should I ve .NET also installed in my system ?
Can you explain me in more detail ?
05-02-2007 09:58 AM