Kbase P12462: Migration from V6 and error: Memory violation. (49)
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  01/02/2003 |
|
Status: Unverified
FACT(s) (Environment):
Compaq Tru64 UNIX 5.1A
SYMPTOM(s):
SYSTEM ERROR: Memory violation. (49)
Patch 9.1C17 applied
CHANGE:
Application migrated from V6 to V9
CAUSE:
Memory violation problem is caused by a double definition of the same SHARED WORKFILE in two programs.
Program1 defines a shared WORKFILE X.
/* Start Program1 */
DEFINE SHARED WORKFILE X
.
.
.
RUN PROGRAM2
/* End of Program1 */
The called program (Program2) also defines a shared WORKFILE x.
/* Start Program2 */
DEFINE SHARED WORKFILE X
.
.
.
/* End of Program2 */
FIX:
Add the NEW clause to the define statement in Program2 like this:
DEFINE NEW SHARED WORKFILE X