Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fatal Error when launching
Message
De
14/07/2004 11:43:57
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Fatal Error when launching
Divers
Thread ID:
00924257
Message ID:
00924257
Vues:
50
Hi all

I am upgrading from VFP5 to VFP8 and use a "wrapper" which is compiled in VFP5 to install the VFP8 run time and then run the VFP8 program.

Some machines (so far 4 out of 50) result in a "Fatal Error" when launching the VFP8 program from inside the VFP5 app. I've tried including a config.fpw file in the project with RESOURCE=OFF, but that doesn't help.

Please any ideas?

Here is the wrapper code (vfp5)
****************
LOCAL laServer, ;
laLocal

DIME laServer[1,5]
DIME laLocal[1,5]
=ADIR(laServer, 'F:\APPS\planapp\_planapp.EXE')

* copy to local C: drive
=ADIR(laLocal, 'C:\_planapp.EXE')
IF !FILE('c:\_planapp.exe') OR laServer[1,3]<>laLocal[1,3] OR laServer[1,4]<>laLocal[1,4]
IF !FILE('c:\program files\common files\microsoft shared\vfp\vfp8r.dll')
* install vfp8 run time
lcFile='\\slo1\sys\apps\setupvfp8\setup.exe'
loShell=CREATEOBJECT('wscript.shell')
loShell.run(lcFile,1,.t.)
ENDIF
COPY FILE F:\APPS\planapp\_planapp.EXE TO C:\_planapp.EXE
ENDIF
loShell=CREATEOBJECT('wscript.shell')
* _planapp.exe is in vfp8
* this is where the error occurs
* this config file contains RESOURCE=OFF
loShell.run('c:\_planapp.exe -CF:\APPS\LANDINQ\CONFIG.FPW',1,.f.)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform