Consultor Eletrônico



Kbase P116626: Architect fails when launching TTY and GUI applications
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/22/2010
Status: Unverified

SYMPTOM(s):

Architect fails when launching TTY and GUI applications

Architect unable to launch application

No error message is issued, the application won't start.

When trying to launch application with Eclipse launcher the GUI or TTY application will not launch with no-error.

FACT(s) (Environment):

OpenEdge 10.1A

CAUSE:

start.exe is missing in the machine.
In some older versions of Windows (Windows98 for example) start.exe was included.
In a configuration with a start command, specifically, a start.exe command being available to the execution PATH, TTY and GUI configuration will be able to launch.
A configuration where there is no start.exe command, TTY and GUI configurations will not launch.

FIX:

Copy the start.exe file from the older machine to the C:\Windows directory of the other.
Note that the MKS Toolkit also includes a start.exe and can be acquired from Microsoft.
If you need to test if your system has the start.exe you can run the following ABL code.
DEFINE VARIABLE cFile as character format "x(90)".
DEFINE VARIABLE ReturnCode AS INTEGER NO-UNDO.

cfile = "START C:\WINDOWS\SYSTEM32\NOTEPAD.EXE".
run WinExec(cFile, 1, output returncode).
PROCEDURE WinExec EXTERNAL "kernel32.dll":
DEF INPUT PARAMETER prog-name AS CHARACTER.
DEF INPUT PARAMETER prog_style AS LONG.
DEFINE RETURN PARAMETER StatusCode AS LONG.
END PROCEDURE.
IF ReturnCode >= 32 THEN
MESSAGE "Application was Started" VIEW-AS ALERT-BOX.
ELSE
MESSAGE "Application Failed:" ReturnCode VIEW-AS ALERT-BOX.