Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP9 test EXE doesn't respect parameters :-(
Message
From
22/12/2013 18:45:22
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
VFP9 test EXE doesn't respect parameters :-(
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01590839
Message ID:
01590839
Views:
124
Hi everybody:

I get a very strange error. If I do this call from a PRG in Development mode, the PRG get 8 parameters:


DO tst.prg WITH "MERGE", "C:\Temp\\80115cd9-7b28-40db-b324-f108b0fcaaad.pjx", "c:\DESA\foxbin2prg\foxbin2prg.pjx", "c:\DESA\foxbin2prg\foxbin2prg.pjx#/main/Soporte_MNXcs107", "c:\DESA\foxbin2prg\foxbin2prgpjx/main#cs110", "C:\Temp\b3894431-a073-4ada-8eb9-2f0e80a760b4.pjx", "c:\DESA\foxbin2prg\foxbin2prgpjxmainv115p1cs", "C:\Temp\\9b139b4b-f99b-443a-9f09-46881abb6be5.pjx"

Yes, I know that looks strange, but are parameters from a SCM tool with temp names


BUT, if I do the same call with an EXE (same PRG compiled) from the Windows command shell, it throws an error:

C:\tst.exe "MERGE" "C:\Temp\\80115cd9-7b28-40db-b324-f108b0fcaaad.pjx" "c:\DESA\foxbin2prg\foxbin2prg.pjx" "c:\DESA\foxbin2prg\foxbin2prg.pjx#/main/Soporte_MNXcs107" "c:\DESA\foxbin2prg\foxbin2prgpjx/main#cs110" "C:\Temp\b3894431-a073-4ada-8eb9-2f0e80a760b4.pjx" "c:\DESA\foxbin2prg\foxbin2prgpjxmainv115p1cs" "C:\Temp\\9b139b4b-f99b-443a-9f09-46881abb6be5.pjx"


This is the error throwed:
Command contains unrecognized phrase/keyword (Error 36)


This is the PRG, in case someone wants to reproduce it:

*-- TST.PRG
PARAMETERS p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17,p18,p19,p20,p21,p22,p23,p24,p25
MESSAGEBOX( "PCOUNT=" + TRANSFORM(PCOUNT()) )
RETURN


You can compile it with this commands:

BUILD PROJECT tst.pjx FROM tst.prg
BUILD EXE tst.exe from tst.pjx RECOMPILE


Another test that shows 0 parameters! o_O:

C:\>tst.exe "c:\DESA\foxbin2prg\foxbin2prg.pjx#/main/Soporte_MNX#cs:107c:\DESA\foxbin2prg\foxbin2prg.pjx#/main#cs:110C:\Temp\\b3894431-a073-4ada-8eb9-2f0e80a760b4.pjxc:\DESA\foxbin2prg\foxbin2prg.pjx#/main/v1.15p1#cs:100C:\Temp\\9b139b4b-f99b-443a-9f09-46881abb6be5.pjx"


Does anybody have an idea why Fox doesn't like this parameters in the EXE version and why it inspect there contents?

Thanks :-(
Fernando D. Bozzo
Madrid / Spain
Next
Reply
Map
View

Click here to load this message in the networking platform