Consultor Eletrônico



Kbase P121816: Class with cast function crashes when compiled with XREF or XREF-XML
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/24/2007
Status: Unverified

FACT(s) (Environment):

OpenEdge 10.1x

SYMPTOM(s):

Class with cast function crashes when compiled with XREF or XREF-XML

The following (simplified) code causes the session to crash:

class b:
def var o as progress.lang.object.
method vopidm():
cast(o, a):att = yess.
end.
end.

CAUSE:

This is a known issue being investigated by development.

FIX:

As a workaround, do not assign attributes directly to the cast() function:

class b:
def var o as progress.lang.object.
method void m():
def var a as a no-undo.
a = cast(o, a).
a:att = yes.
end.
end.