Consultor Eletrônico



Kbase P100755: Error 4009 when using SELF system handle
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   04/10/2005
Status: Unverified

FACT(s) (Environment):

OpenEdge 10.x

SYMPTOM(s):

Querying an attribute for the SELF system handle result in an error

Cannot query an attribute for the SELF system handle

Invalid UIC passed to ioGetAttribute. (4009)

CAUSE:

The attribute for this handle is not valid or the widget pointed by SELF has been destroyed: SELF is a valid handle as long as the pointed widget is valid, however from the moment you destroy this widget, the SELF system handle is meaningless.

FIX:

Before querying an attribute for an handle, verify that the handle is valid and that attribute and after that you are querying a valid attribute for that handle:
IF VALID-HANDLE (SELF:HANDLE) THEN
IF CAN-QUERY (SELF:HANDLE, 'LABEL') THEN ...