Consultor Eletrônico



Kbase P167317: Object reference in static temp-table becomes invalid when running from Procedure Editor
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/18/2010
Status: Unverified

SYMPTOM(s):

Object reference in static temp-table becomes invalid when running from Procedure Editor

Code uses a class with a static temp-table member, the temp-table contains object references

Running code from procedure editor

Running code the first time works but throws various erors on subsequent attempts

Errors raised indicate that object references have become invalid

FACT(s) (Environment):

OpenEdge 10.1C
OpenEdge 10.2x
All Supported Operating Systems

CAUSE:

This is expected behavior.

The static temp-table and the records it contains will never be deleted because it is static.However, the Procedure Editor explicitly deletes any objects created by the procedure that was run.
So if the static temp-table contains references to objects that have been deleted by the procedure editor in this way, those references will be invalid.

FIX:

Add a static method that can empty/clean up the temp-table as needed.