Print out the value of the 'Handle' property in your c# code before the method returns and then print the value you get in native after you unbox. If they're not the same value you're done something wrong. Give that a shot and see what happens. Maybe it'll help you diagnose the issue.
Alan On 22 May 2011 19:52, "Nils Andresen" <n...@nils-andresen.de> wrote: > 2011/5/22 Robert Jordan <robe...@gmx.net>: >> You must unbox the returned object. See mono_object_unbox(). >> >> Robert > > Yes, I tried that, too. > The code looks like this: >> MonoObject *o = mono_runtime_invoke (method, instance, NULL, &ex); >> GList *list = (GList *)mono_object_unbox (o); > The resulting GList contains 2 Elements, not 4 and the contents is all wrong. > Do I have to unbox the content, too? (Content is strings in this case) > > Nils > _______________________________________________ > Mono-list maillist - Mono-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list
_______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list