Consultor Eletrônico



Kbase P72031: Error 12314 passing a reused handle as DATASET-HANDLE parameter.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   30/12/2004
Status: Unverified

FACT(s) (Environment):

OpenEdge 10.x

SYMPTOM(s):

Passing handle variable as DATASET-HANDLE parameter.

Handle has been reused (it referenced an object that has since been deleted)

Invalid DATASET-HANDLE parameter given. (12314)

CAUSE:

For performance reasons, when deleting an object any handles referencing it are not cleaned up automatically - they merely become invalid.
When the handle is passed as DATASET-HANDLE, a check is made to see if it actually points to a ProDataSet object. As it is pointing to nothing, this check will fail.

FIX:

Clean up the handle by assigning the unknown value to the handle before passing it to the called procedure.