[Mono-list] passing MonoArray from c#
david_aiken at yahoo.com
Sat May 2 15:57:09 EDT 2009
mMonoClass->invoke() is just looking up the method name then calling
mono_runtime_invoke(). Trace statements show that the Pack() method is
receiving the parameters correctly and returns. It gets the correct return
value for other c# methods, but they are returning scalars rather than
There is another wrinkle in this - the call is crossing domain boundaries on
the c# side. There is an exception at runtime if the Link and Data
structures are not declared serializable.
I think there may be too many moving pieces in this solution. Do you know of
an easier way to do this? Maybe i can pass a MonoArray** from the unmanaged
code, receive it as an [out] parameter on the c# side, fill it with Link
data, and return? I'm not sure how to do this, unfortunately.
View this message in context: http://www.nabble.com/passing-MonoArray-from-c--tp23341741p23349690.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list