On 22.05.2011 19:52, Nils Andresen wrote: > 2011/5/22 Robert Jordan<[email protected]>: >> 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);
mono_object_unbox() returns a pointer to your intptr, so you have to dereference it: GList *list = *(GList**)mono_object_unbox (o); Robert _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
