Kbase P10514: The procedure createObjects is not run for page zero when the starting page is not zero
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/15/2008 |
|
Status: Verified
FACT(s) (Environment):
Progress 9.1D
SYMPTOM(s):
The procedure createObjects is not run for page zero when the starting page is not zero
CHANGE:
Upgraded from 9.1C to 9.1D
CAUSE:
The createObjects procedure has changed in 9.1D to resolve a problem where pages that had already been created could be created a second time resulting in a memory leak. As a side effect of this change, if the start page for a SmartContainer is anything other than page zero, calling getCurrentPage() after the RUN SUPER statement will never return zero (implying that createObjects is never run for the objects on page zero.
FIX:
A new hook has been added to resolve this problem. This new hook is called postCreateObjects and this is where the code that was placed into the createObjects procedure needs to be moved to.
The simplest way to accomplish this change is to simply rename the createObjects procedure in each affected SmartContainer to postCreateObjects and remove the RUN SUPER statement from the procedure.