JLuc BLONDY - 2021-04-12

Hi,

I have a problem using SAFEARRAY(BSTR).
The IDL definition is the following :
HRESULT TestMethod(SAFEARRAY(BSTR) param1, SAFEARRAY(BSTR) param2, [out] BSTR *param3)

My Java implementation is as follow :
JICallBuilder callObject = new JICallBuilder(!comObj.isDispatchSupported());
callIbject.reInit();
callObject.setOpnum(0); // 1st method of the Interface
JIArray param1 = new JIArray(new JIString[]{new JIString("param1")});
JIArray param2 = new JIArray(new JIString[] {new JIString("param2")});
callObject.addInParamAsArray(param1, JIFlags.FLAG_NULL);
callObject.addInParamAsArray(param2, JIFlags.FLAG_NULL);
callObject.addOutAsType(IJIComObject.class, JIFlags.FLAG_NULL);
comObj.call(callObject);

The error I get is that the Stub received bad data [0x800706F7]

Can you help me ?

Thanks a lot.