Consultor Eletrônico



Kbase P155705: Random 2777 errors when developing code in the AppBuilder
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   24/11/2009
Status: Unverified

SYMPTOM(s):

Could not locate external function 'db-tbl-name'. The handle to the procedure context is invalid. (2777)

Could not locate external function '<function>'. The handle to the procedure context is invalid. (2777)

Application loads several persistent procedures at startup

Application deletes loaded persistent procedures at shutdown

Application walks the SESSION:FIRST-PROCEDURE tree and deletes each persistent procedure

FACT(s) (Environment):

Windows
Progress 9.x
OpenEdge Category: Language (4GL/ABL)

CAUSE:

The application code to delete the loaded persistent procedures does not take into account that it is running in the development environment. Consequently it is deleting all of the persistent procedures loaded by the AppBuilder which in turn is causing the 2777 error.

FIX:

Modify the application code so that it does not delete any persistent procedure whose file name begins with an underscore character.