On 22.05.2011 15:05, Nils Andresen wrote:
> 2011/5/22 Miguel de Icaza<[email protected]>:
>> What you are getting back is not a pointer to the C GList, but a pointer to
>> the managed GList;   What you need to do is return the unmanaged pointer
>> that is wrapped by the C# GList, that would be the GList.Handle.
>> Miguel
>
> Thanks Miguel,
> I tried this. I am currently casting the returned MonoObject (the
> IntPtr now..) directly to GList. This does not work, however. Any more
> hints ?

You must unbox the returned object. See mono_object_unbox().

Robert


_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to