General information
Title:
Fatal Error when launching
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.)
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only