Kbase P25668: Error: Cannot open file... On using the -param startup param
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  23/05/2003 |
|
Status: Unverified
SYMPTOM(s):
Warning messages after the execution of a procedure from a command line that includes the -param startup parameter.
After the program executes, the Procedure editor opens and a warning box appears with the following messages:
Error
<string>
Cannot open file.
The path or filename may be incorrect or the file may not exist.
Creating Untitled buffer in its place.
CAUSE:
The -param startup parameter is used to supply information to a 4GL procedure in a character string or to supply a comma-separated list of files to open in the Procedure Editor buffer(s).
In development mode, the Procedure Editor loads, or attempts to load, the specified file(s) when the startup command ends in the Procedure Editor unless a QUIT statement is executed at the end of the running procedure.
The above error happens when the Procedure Editor attempts to load, what it interprets as filenames, but what is really -param arguments
FIX:
There are two ways to prevent the automatic launch of the Procedure Editor causing the error:
1. Add a QUIT statement at the end of the 4GL procedure.
OR
2. Add the -rr(Run Run-time Client) parameter to the startup command line.