Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to speed up an EXE
Message
From
11/07/2004 07:21:10
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00922944
Message ID:
00923099
Views:
20
Hi Gerard,

Putting the VFP runtime files on the local machines helped me. I loaded the EXE from the network by calling a loader program, like the one below, with the name and path of the EXE as a parameter. A typical icon on the user's desktop would have 'C:\vload\vload.exe F:\mupits\mupits.exe' as the Target and 'C:\vload' as the Start in folder.
* vload.prg
* Loader program
PARAMETER rprog
DO &rprog
I preferred to leave the main EXE on the server, as it was changing frequently and it was easier for me to update one just file overnight.

I found a second source of slow loading was when I used DataEnvironments for forms. By placing the loading of all possible tables in the startup code and just putting a SELECT in the form's Init, the overall performance improved significantly. This proved especially so for an app of mine that runs over ISDN lines.

Both of these options have their downsides. Upgrading to new versions of the runtimes is a bit of a task if there are a couple of hundred users and you have to code a bit more to ensure that one form isn't moving the record pointers and thereby screwing up another. There may be more negatives, but I didn't come across them.

HTH

Alan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform