[Gtk-sharp-list] GStreamer bindings

Owen Fraser-Green owen@discobabe.net
Thu, 29 Apr 2004 23:25:10 +0200


> The patch to ClassBase.cs is fine, but the fact that it is needed is
> most likely indicative of a parsing problem.  You might want to scan
> your api.xml file for object elements without parent attrs.  All objects
> should have parents.  If they don't please file a bug with the struct
> declaration of the object type that doesn't so I can extend the parser
> to handle it.

I'll look into it.

> What behavior are you seeing that prompted you to patch
> glib/Marshaller.cs.  Your patch should work okay, but SizeOf
> (typeof(string)) should be returning the proper results too, unless
> perhaps if there's a 64 bit bug in mono or something.  Can you clarify
> why you added this to the patch?

With mono 0.31, Marshal.SizeOf(typeof(string)) gives:

Unhandled Exception: System.ArgumentException: Type String cannot be
marshaled as an unmanaged structure.
Parameter name: t
in (unmanaged) /usr/lib/libmono.so.0(mono_raise_exception+0x20)
in (unmanaged) /usr/lib/libmono.so.0 [0x6e5d2d0]

Is this a bug in System.Runtime.InteropServices maybe?