LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Slow program when started with desktop shortcut

My program is running without problems if it's started from the Windows Explorer, but if it's started with a desktop shortcut it runs (somtimes!) VERY slow. I've tried to create the shortcut in different ways, but nothing seems to help. It runs on Windows XP and is once installed on the computer, but the executable is run over network. Does anyone have any ideas?
0 Kudos
Message 1 of 7
(4,014 Views)
I am having the same issue with 2 pcs at a remote site. I would be interested to hear if you were able to resolve it.
0 Kudos
Message 2 of 7
(3,962 Views)
Haven't solved it, but worked around it... I created a batch file that starts the program. It's no problem to have a shortcut for the batch file on the desktop. Still interessted in why it doesn't work with a normal shortcut.
0 Kudos
Message 3 of 7
(3,953 Views)
Hi, got the same problem with 6 pc on winxp and a win2000 server. Any solution yet?
0 Kudos
Message 4 of 7
(3,918 Views)
The problem is probably the start path right click on your shortcut and go to properties and set the start in directory to the correct directy for your app OR the programtic solution is to do the following (note include windows.h)

char path[MAC_PATH];

GetModuleFileName(0, path, MAX_PATH) ;
SetDir(path) ;

and that will fix it also
0 Kudos
Message 5 of 7
(3,915 Views)
oooops check that the code should be

char path[MAX_PATH] ;

GetModuleFileName(0, path, MAX_PATH) ;
*(strrchr(path, '\\') + 1) = '\0';
SetDir(MotanaExecDir) ;
0 Kudos
Message 6 of 7
(3,914 Views)
Hey!!!
I found the asnwer to my problem

Windows Update KB887742

itresolve a problem with the windows firewall and some antivirus conflict.
0 Kudos
Message 7 of 7
(3,906 Views)