Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error message when starting VFP executable
Message
From
23/10/2015 10:44:23
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01626365
Message ID:
01626372
Views:
52
>>>When I start a vfp executable with
>>>
>>>C:\global\global9.exe
>>>
>>>I get the following error message but on only one of the machines runnining this exe
>>>
>>>function argument value type or count is invalid
>>>
>>>If I click on ignore the exe continues OK
>>>
>>>How do I get rid of the message
>>
>>I know folks that would sacrastically answer you should fix the bug?
>>
>>There is a debug option if you run the exe from IDE. Follow it.
>>If not set
>>DEBUG
>>SUSPEND
>>right after LPARAMETERS in your main.prg
>>Debug
>
>
>I have never used Lparameters
>
>Can you five me an example
>
>If I hear you right
>
>Lparameters and the rest of the line
>debug
>suspend
>
>Where do I put I put it - right at the opening of the startup program?
>
>Why would it only happen on 1 machine when they are all running the same exe?
>
>Thanks for your help
>
>Colin

there is PARAMETERS and LPARAMETERS.
Parameters declares the parameters as PRIVATE while LPARAMETERS declares them as LOCAL.
IOW a parameter declared with PARAMETERS is visible to the code you call from the procedurs / main / whatever.
In simple words: Use LPARAMETERS. Allways. If you use PARAMETERS in the idea you are doing LOCAL change your code. Codereference or GoFish will do wonders. (do not rely on coderefernces replace on vcx's. It's faulty by vcx design.)

Other exe might have different code? Do you have checked the DLL versions? Does the exe rely on external code visible via PATH?
There is a number of nearly n to ask questions.

The most simple way is to use the debugger see the point where the problems occur and think about it. Anything else is guesswork.

If you have figured out the line that is failing and have no idea why, we can try to give advice on a code snippet.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform