Consultor Eletrônico



Kbase P120307: NEW GLOBAL SHARED statement invalidates existing handles
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/11/2010
Status: Unverified

SYMPTOM(s):

Using global shared temp-table

Using dynamic buffer for shared temp-table

Other procedure redefines same global shared temp-table

Dynamic buffer handle becomes invalid after global shared temp-table is redefined

Invalid widget-handle. Not initialized or points to a deleted widget. (3135)

DEF NEW GLOBAL SHARED TEMP-TABLE tt-customer LIKE customer.
DEF VAR h-buf AS HANDLE.
DEF VAR h-i AS HANDLE.
h-buf = BUFFER tt-customer:HANDLE.
CREATE BUFFER h-i FOR TABLE h-buf.

RUN "otherproc.p". /* otherproc.p contains DEF NEW GLOBAL SHARED TEMP-TABLE tt-customer. */

/* at this point h-i is invalid. */

Issue does not happen with OpenEdge 10.1A02 or later

FACT(s) (Environment):

OpenEdge 10.1A
OpenEdge 10.1A01

CAUSE:

The exact cause is unknown at the time of this writing

FIX:

Upgrade to OpenEdge 10.1A02 or later.