Consultor Eletrônico



Kbase P109738: COM-HANDLE returned by ActiveX method returns errors "The parameter is incorrect" for some propertie
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   24/06/2008
Status: Verified

SYMPTOM(s):

Accessing specific properties of a COM-OBJECT results in error 5890

Error occurred while accessing component property/method: <property or method name>.
<COM message>
Error code: <Program name> (5890)

Error occurred while accessing component property/method: <property or method name>.
The parameter is incorrect
Error code: 0x80070057 <Program name> (5890)

Other properties work as expected

ActiveX works as expected when called from Windows Scripting Host script

The COM property is defined as VT_ARRAY | VT_UI1

FACT(s) (Environment):

Progress 9.1x
OpenEdge 10.0B
OpenEdge 10.1A
All Supported Operating Systems

CAUSE:

Enhancement Request# OE00122943

CAUSE:

The COM property contains raw data which exceeds 32K.
Within the Progress client the VT_ARRAY | VT_UI1 COM datatype is mapped to the 4GL RAW datatype, which can not hold more than 32K of data. Therefore the data cannot be retrieved.

FIX:

Enhancement Request# OE00122943 has been implemented

Upgrade to OpenEdge 10.1B or later

If Progress is getting a property value or a method return value that is a byte array (array of unsigned bytes), it can now be assigned it into a MEMPTR variable.