Kbase P57012: Error 392 when running persistent procedures utilising share
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  12/2/2003 |
|
Status: Unverified
SYMPTOM(s):
Error 392 when running persistent procedures utilising shared variables
<program> Shared variable <variable> has not yet been created. (392)
Procedure 1 defines a new shared variable
Procedure 5 defines a shared variable
Procedure 1 then runs Procedure 4 persistently
Procedure 4 executes Procedure 5 as part of an internal procedure
CAUSE:
When Procedure 5 is run it's context does not extend to Procedure 1, only to Procedure 4. Therefore the shared variable is not found resulting in error 392.
Progress Help states the following:
"If the procedure that names the shared variable is called from a trigger or internal procedure that is part of a persistent procedure context, the persistent context is also checked for the most recent DEFINE NEW SHARED VARIABLE or DEFINE NEW GLOBAL SHARED VARIABLE statement at the point in the calling chain where the trigger or internal procedure is executed."
FIX:
Define the shared variable in Procedure 4 as well