Consultor Eletrônico



Kbase P101938: Error 6456 when calling the launchDynWindow from dynamic object container
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/9/2005
Status: Unverified

FACT(s) (Environment):

Dynamics 2.1A
Dynamics 2.1B

SYMPTOM(s):

Error 6456 when calling the launchDynWindow from dynamic object container

Procedure <procedure> has no entry point for addLink. (6456)

No error when running the same code from the static container

The code that calls launchDynWindow and that procedure itself are located in the container's custom super procedure

CAUSE:

The call from launchDynWindow procedure to the launchContainer procedure is being
done from the dynamic container's custom super procedure, therefore requiring modification
from the documentation example given for the static container.

FIX:

Modify the code which resides in the dynamic container's
custom super procedure in the following way:

PROCEDURE launchDynWindow

DEFINE INPUT PARAMETER pcWindowName AS CHARACTER NO-UNDO.
DEFINE OUTPUT PARAMETER phProcedureHandle AS HANDLE NO-UNDO.
DEFINE VARIABLE cProcedureType AS CHARACTER NO-UNDO.

RUN launchContainer IN gshSessionManager
(INPUT /* pcObjectFileName */ '':U,
INPUT /* pcPhysicalFileName */ 'ry/uib/rydyncontw.w',
INPUT /* pcLogicalName */ pcWindowName,
INPUT /* plOnceOnly */ YES,
INPUT /* pcInstanceAttributes */ '':U,
INPUT /* pcChildDataKey */ '':U,
INPUT /* pcRunAttribute */ '':U,
INPUT /* pcContainerMode */ 'view':U,
INPUT /* phParentWindow */ TARGET-PROCEDURE:CURRENT-WINDOW,
INPUT /* phParentProcedure */ TARGET-PROCEDURE,
INPUT /* phObjectProcedure */ ?,
OUTPUT phProcedureHandle,
OUTPUT cProcedureType /* ICF */ ) .

END PROCEDURE.