Ivg
8 years agoOccasional Contributor
Passing "IObject" as an argument to native method fails
Hi,
I'm trying to do some actions on native java methods and fails while trying to pass an IObject interface (actually java object) as a parameter.
IControl table = *Finds the table...*
IObject cellRectangle = table.CallMethod<IObject>("getCellRect", rowIndex, columnIndex, true);
table.CallMethod("scrollRectToVisible", cellRectangle);
The last line is where I get the exception, when trying to pass cellRectangle as an argument.
Doesn't TestLeft supports passing IObject as an argument to native methods?
Thanks