Hi,
We are trying to access COM component from java
using jawin.
Generated stub code from jawin Browser and using
those stubs able to communicate with COM dll from the
client.
Calling the member function with [in] parameters is
success.
Client crashing with Type mismatch error/ thread
access violation while accessing function with [out]
parameters.
The function we are trying to access are expecting [out]
parameter.
Here the function signature generated from jawin:
public short SelectDetailsCase(String[] szDetails,String
szName,String[] szID,String[] szSize,Object[] [] Frame)
throws COMException
{
return ((Short)invokeN
("SelectCase", new Object[] { szDetails, szName, szID,
szSize, Frame})).shortValue();
}
For the above function the out parameter is the COM
Class (Interface pointer).
What parameters (in place object [][]) should be
passes from the client?
For handling Interface pointer by reference initilization of
the double array should be done with null/instance?
My client code from java looks like:
Variant.ByrefHolder outValueRef = new
Variant.ByrefHolder(new IAPIFrame(Frame.CLSID));
Object[][] oRefIAPIFrame = new Object[][]
{{outValueRef},{null}};
short rFrame = iAPIDb.GetCase
("models","System","B1","B1",oRefIAPIFrame );
Please help in this.
Thanks in advance.
Regards,
Ramakrishna.